Package com.google.guiceberry

Examples of com.google.guiceberry.TestDescription


    };
  }

  static TestDescription buildTestDescription(TestCase testCase, String methodName) {
    String testCaseName = testCase.getClass().getName();
    return new TestDescription(testCase, testCaseName + "." + methodName);
  }
View Full Code Here


    };
  }

  private static TestDescription buildTestDescription(Object testCase, String methodName) {
    String testCaseName = testCase.getClass().getName();
    return new TestDescription(testCase, testCaseName + "." + methodName);
  }
View Full Code Here

  private static final Object newTestCase = new NewTestCase();
  private static final Object oldAndNewTestCase = new OldAndNewTestCase();

  @Test
  public void testOldAnnotation() {
    TestDescription testDescription = new TestDescription(oldTestCase, "oldTestCase");
    Assert.assertEquals(
        "old",
        AnnotationBasedGuiceBerryEnvSelector.getGbeNameFromGbeAnnotation(testDescription));
  }
View Full Code Here

        AnnotationBasedGuiceBerryEnvSelector.getGbeNameFromGbeAnnotation(testDescription));
  }
 
  @Test
  public void testNewAnnotation() {
    TestDescription testDescription = new TestDescription(newTestCase, "newTestCase");
    Assert.assertEquals(
        "new",
        AnnotationBasedGuiceBerryEnvSelector.getGbeNameFromGbeAnnotation(testDescription));
  }
View Full Code Here

        AnnotationBasedGuiceBerryEnvSelector.getGbeNameFromGbeAnnotation(testDescription));
  }

  @Test
  public void testOldAndNewAnnotationThrows() {
    TestDescription testDescription = new TestDescription(oldAndNewTestCase, "oldAndNewTestCase");
    try {
      AnnotationBasedGuiceBerryEnvSelector.getGbeNameFromGbeAnnotation(testDescription);
      Assert.fail();
    } catch (IllegalArgumentException good) {
    }
View Full Code Here

    };
  }

  static TestDescription buildTestDescription(Object testCase, String methodName) {
    String testCaseName = testCase.getClass().getName();
    return new TestDescription(testCase, testCaseName + "." + methodName);
  }
View Full Code Here

  public GuiceBerryJunit3(GuiceBerry guiceBerry) {
    this.guiceBerry = guiceBerry;
  }

  private static TestDescription buildDescription(TestCase testCase) {
    return new TestDescription(
      testCase,
      testCase.getClass().getName() + "." + testCase.getName());
  }
View Full Code Here

    INSTANCE.doSetUp(testCase);
  }

  public synchronized void doSetUp(final TestCase testCase) {
   
    TestDescription testDescription = buildDescription(testCase);

    final GuiceBerryWrapper wrapper = guiceBerry.buildWrapper(testDescription,
        new VersionTwoBackwardsCompatibleGuiceBerryEnvSelector());

    //add a tear down before setting up so that if an exception is thrown there,
View Full Code Here

TOP

Related Classes of com.google.guiceberry.TestDescription

Copyright © 2018 www.massapicom. 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.