org.springframework.test.context.TestExecutionListeners.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(5.8k)|赞(0)|评价(0)|浏览(111)

本文整理了Java中org.springframework.test.context.TestExecutionListeners.<init>()方法的一些代码示例,展示了TestExecutionListeners.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TestExecutionListeners.<init>()方法的具体详情如下:
包路径:org.springframework.test.context.TestExecutionListeners
类名称:TestExecutionListeners
方法名:<init>

TestExecutionListeners.<init>介绍

暂无

代码示例

代码示例来源:origin: spring-projects/spring-framework

@TestExecutionListeners({ FirstTel.class, SecondTel.class, ThirdTel.class })
private static class ExampleTestCase {
  @SuppressWarnings("unused")
  public void exampleTestMethod() {
  }
}

代码示例来源:origin: spring-projects/spring-framework

@TestExecutionListeners(inheritListeners = false)
public static abstract class BaseTestCase extends AbstractTestNGSpringContextTests {
  @org.testng.annotations.Test
  public void testNothing() {
  }
}

代码示例来源:origin: spring-projects/spring-framework

@TestExecutionListeners(
    listeners = {QuuxTestExecutionListener.class, DependencyInjectionTestExecutionListener.class},
    mergeMode = MERGE_WITH_DEFAULTS)
static class MergedDefaultListenersWithCustomListenerPrependedTestCase {
}

代码示例来源:origin: spring-projects/spring-framework

@TestExecutionListeners({})
public abstract static class AbstractRepeatedTestCase {
  protected void incrementInvocationCount() throws IOException {
    invocationCount.incrementAndGet();
  }
}

代码示例来源:origin: spring-projects/spring-framework

@TestExecutionListeners(
    {FooTestExecutionListener.class, BarTestExecutionListener.class, BazTestExecutionListener.class})
static class ExplicitListenersTestCase {
}

代码示例来源:origin: spring-projects/spring-framework

@TestExecutionListeners({ FailingAfterTestClassListener1.class, FailingAfterTestClassListener2.class })
private static class FailingAfterTestClassTestCase {
}

代码示例来源:origin: spring-projects/spring-framework

@Ignore("TestCase classes are run manually by the enclosing test class")
@TestExecutionListeners({})
public static final class ExpectedExceptionSpringRunnerTestCase {
  // Should Pass.
  @Test(expected = IndexOutOfBoundsException.class)
  public void verifyJUnitExpectedException() {
    new ArrayList<>().get(1);
  }
}

代码示例来源:origin: spring-projects/spring-framework

@Ignore("TestCase classes are run manually by the enclosing test class")
@TestExecutionListeners(AlwaysFailingPrepareTestInstanceTestExecutionListener.class)
public static class AlwaysFailingPrepareTestInstanceTestCase extends BaseTestCase {
}

代码示例来源:origin: spring-projects/spring-framework

@Ignore("TestCase classes are run manually by the enclosing test class")
@TestExecutionListeners(AlwaysFailingAfterTestClassTestExecutionListener.class)
public static class AlwaysFailingAfterTestClassSpringRuleTestCase extends BaseSpringRuleTestCase {
}

代码示例来源:origin: spring-projects/spring-framework

@Ignore("TestCase classes are run manually by the enclosing test class")
@TestExecutionListeners(AlwaysFailingAfterTestExecutionTestExecutionListener.class)
public static class AlwaysFailingAfterTestExecutionTestCase extends BaseTestCase {
}

代码示例来源:origin: spring-projects/spring-framework

@Ignore("TestCase classes are run manually by the enclosing test class")
@TestExecutionListeners(AlwaysFailingAfterTestMethodTestExecutionListener.class)
public static class AlwaysFailingAfterTestMethodTestCase extends BaseTestCase {
}

代码示例来源:origin: spring-projects/spring-framework

@Ignore("TestCase classes are run manually by the enclosing test class")
@TestExecutionListeners(AlwaysFailingPrepareTestInstanceTestExecutionListener.class)
public static class AlwaysFailingPrepareTestInstanceSpringRuleTestCase extends BaseSpringRuleTestCase {
}

代码示例来源:origin: spring-projects/spring-framework

@Ignore("TestCase classes are run manually by the enclosing test class")
@TestExecutionListeners(AlwaysFailingBeforeTestMethodTestExecutionListener.class)
public static class AlwaysFailingBeforeTestMethodSpringRuleTestCase extends BaseSpringRuleTestCase {
}

代码示例来源:origin: spring-projects/spring-framework

@Ignore("TestCase classes are run manually by the enclosing test class")
@TestExecutionListeners(AlwaysFailingAfterTestMethodTestExecutionListener.class)
public static class AlwaysFailingAfterTestMethodSpringRuleTestCase extends BaseSpringRuleTestCase {
}

代码示例来源:origin: spring-projects/spring-framework

@Ignore("TestCase classes are run manually by the enclosing test class")
@TestExecutionListeners(AlwaysFailingBeforeTestClassTestExecutionListener.class)
public static class AlwaysFailingBeforeTestClassTestCase extends BaseTestCase {
}

代码示例来源:origin: spring-projects/spring-framework

@Ignore("TestCase classes are run manually by the enclosing test class")
@TestExecutionListeners(AlwaysFailingAfterTestClassTestExecutionListener.class)
public static class AlwaysFailingAfterTestClassTestCase extends BaseTestCase {
}

代码示例来源:origin: spring-projects/spring-framework

@Ignore("TestCase classes are run manually by the enclosing test class")
@TestExecutionListeners(AlwaysFailingBeforeTestExecutionTestExecutionListener.class)
public static class AlwaysFailingBeforeTestExecutionTestCase extends BaseTestCase {
}

代码示例来源:origin: spring-projects/spring-framework

@Ignore("TestCase classes are run manually by the enclosing test class")
@TestExecutionListeners(AlwaysFailingBeforeTestClassTestExecutionListener.class)
public static class AlwaysFailingBeforeTestClassSpringRuleTestCase extends BaseSpringRuleTestCase {
}

代码示例来源:origin: spring-projects/spring-framework

@Ignore("TestCase classes are run manually by the enclosing test class")
@TestExecutionListeners(AlwaysFailingBeforeTestMethodTestExecutionListener.class)
public static class AlwaysFailingBeforeTestMethodTestCase extends BaseTestCase {
}

代码示例来源:origin: spring-projects/spring-framework

@TestExecutionListeners({})
public abstract static class AbstractRepeatedTestCase {
  @ClassRule
  public static final SpringClassRule springClassRule = new SpringClassRule();
  @Rule
  public final SpringMethodRule springMethodRule = new SpringMethodRule();
  protected void incrementInvocationCount() throws IOException {
    invocationCount.incrementAndGet();
  }
}

相关文章