Package junit3_tdtc.tutorial_0_basic

Source Code of junit3_tdtc.tutorial_0_basic.Example0HelloWorldTest$Env

package junit3_tdtc.tutorial_0_basic;

import com.google.common.testing.junit3.TearDownTestCase;
import com.google.guiceberry.GuiceBerryModule;
import com.google.guiceberry.junit3.AutoTearDownGuiceBerry;
import com.google.inject.AbstractModule;

public class Example0HelloWorldTest extends TearDownTestCase {

  @Override
  protected void setUp() throws Exception {
    super.setUp();
    // Make this the call to AutoTearDownGuiceBerry.setUp as early as possible,
    // though after TearDownTestCase's setUp.
    AutoTearDownGuiceBerry.setUp(this, Env.class);
  }

  public void testNothing() throws Exception {
    assertTrue(true);
  }

  public static final class Env extends AbstractModule {
    @Override
    protected void configure() {
      install(new GuiceBerryModule());
    }
  }
}
TOP

Related Classes of junit3_tdtc.tutorial_0_basic.Example0HelloWorldTest$Env

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.