Examples of contextInfo()


Examples of com.foreach.across.test.AcrossTestContext.contextInfo()

  @Test
  public void bootstrapWithoutWebModule() {
    try (AcrossTestContext ctx = new AcrossTestContext( new Config() )) {
      assertTrue( SimpleInstaller.installed );
      assertTrue( ctx.contextInfo().getModuleInfo( "MyModule" ).isBootstrapped() );
      assertFalse( ctx.contextInfo().hasModule( AcrossWebModule.NAME ) );
    }
  }

  @Test
View Full Code Here

Examples of com.foreach.across.test.AcrossTestContext.contextInfo()

  @Test
  public void bootstrapWithoutWebModule() {
    try (AcrossTestContext ctx = new AcrossTestContext( new Config() )) {
      assertTrue( SimpleInstaller.installed );
      assertTrue( ctx.contextInfo().getModuleInfo( "MyModule" ).isBootstrapped() );
      assertFalse( ctx.contextInfo().hasModule( AcrossWebModule.NAME ) );
    }
  }

  @Test
  public void bootstrapWithWebModule() {
View Full Code Here

Examples of com.foreach.across.test.AcrossTestWebContext.contextInfo()

  @Test
  public void bootstrapWithWebModule() {
    try (AcrossTestContext ctx = new AcrossTestWebContext( new Config() )) {
      assertTrue( SimpleInstaller.installed );
      assertTrue( ctx.contextInfo().getModuleInfo( "MyModule" ).isBootstrapped() );
      assertTrue( ctx.contextInfo().hasModule( AcrossWebModule.NAME ) );
    }
  }

  static class Config implements AcrossContextConfigurer
View Full Code Here

Examples of com.foreach.across.test.AcrossTestWebContext.contextInfo()

  @Test
  public void bootstrapWithWebModule() {
    try (AcrossTestContext ctx = new AcrossTestWebContext( new Config() )) {
      assertTrue( SimpleInstaller.installed );
      assertTrue( ctx.contextInfo().getModuleInfo( "MyModule" ).isBootstrapped() );
      assertTrue( ctx.contextInfo().hasModule( AcrossWebModule.NAME ) );
    }
  }

  static class Config implements AcrossContextConfigurer
  {
View Full Code Here
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.