Examples of GroupsTestRunner


Examples of org.springside.modules.test.groups.GroupsTestRunner

  }

  @Test
  @SuppressWarnings("unchecked")
  public void groupsInit() throws InitializationError {
    GroupsTestRunner groupsTestRunner = new GroupsTestRunner(GroupsTestRunnerTest.class);
    //Get DAILY,NIGHTLY from system properties.
    ReflectionUtils.invokeMethod(groupsTestRunner, "initGroups", null, null);
    assertEquals("DAILY", ((List<String>) ReflectionUtils.getFieldValue(groupsTestRunner, "groups")).get(0));
    assertEquals("NIGHTLY", ((List<String>) ReflectionUtils.getFieldValue(groupsTestRunner, "groups")).get(1));
View Full Code Here

Examples of org.springside.modules.test.groups.GroupsTestRunner

    assertEquals("all", ((List<String>) ReflectionUtils.getFieldValue(groupsTestRunner, "groups")).get(0));
  }

  @Test
  public void isTestClassShouldRun() throws InitializationError {
    GroupsTestRunner groupsTestRunner = new GroupsTestRunner(GroupsTestRunnerTest.class);
    ReflectionUtils.invokeMethod(groupsTestRunner, "initGroups", null, null);

    assertEquals(true, GroupsTestRunner.shouldRun(TestClassBean1.class));
    assertEquals(true, GroupsTestRunner.shouldRun(TestClassBean2.class));
    assertEquals(false, GroupsTestRunner.shouldRun(TestClassBean3.class));
View Full Code Here

Examples of org.springside.modules.test.groups.GroupsTestRunner

  }

  @Test
  public void isTestMethodShouldRun() throws InitializationError, SecurityException, NoSuchMethodException {
    GroupsTestRunner groupsTestRunner = new GroupsTestRunner(GroupsTestRunnerTest.class);
    ReflectionUtils.invokeMethod(groupsTestRunner, "initGroups", null, null);

    assertEquals(true, GroupsTestRunner.shouldRun(TestClassBean1.class.getMethod("shouldRun", new Class[] {})));
    assertEquals(false, GroupsTestRunner
        .shouldRun(TestClassBean1.class.getMethod("shouldNeverRun", new Class[] {})));
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.