Package junit4.tutorial_0_basic

Source Code of junit4.tutorial_0_basic.Example0HelloWorldTest$Env

package junit4.tutorial_0_basic;

import static org.junit.Assert.assertTrue;

import com.google.guiceberry.GuiceBerryModule;
import com.google.guiceberry.junit4.GuiceBerryRule;
import com.google.inject.AbstractModule;

import org.junit.Rule;
import org.junit.Test;

public class Example0HelloWorldTest {

  @Rule
  public final GuiceBerryRule guiceBerry = new GuiceBerryRule(Env.class);

  @Test
  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 junit4.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.