Package test

Source Code of test.ProjectMessageIntegrationTest

package test;


import interfaces.MessageService;

import org.impalaframework.facade.Impala;
import org.impalaframework.definition.source.TestDefinitionSource;
import org.impalaframework.module.definition.RootModuleDefinition;
import org.impalaframework.testrun.InteractiveTestRunner;

import test.BaseIntegrationTest;

public class ProjectMessageIntegrationTest extends BaseIntegrationTest {

  public static void main(String[] args) {
    InteractiveTestRunner.run(ProjectMessageIntegrationTest.class);
  }

  public void testIntegration() {
    MessageService service = Impala.getModuleBean("@module.project.name@", "messageService", MessageService.class);
    System.out.println(service.getMessage());
  }

  public RootModuleDefinition getModuleDefinition() {
    return new TestDefinitionSource("@main.project.name@", "@module.project.name@").getModuleDefinition();
  }

}
TOP

Related Classes of test.ProjectMessageIntegrationTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.