Java 类org.apache.lucene.util.TestRuleIgnoreTestSuites 实例源码

项目:search    文件:WithNestedTests.java   
@Before
public final void before() {
  if (suppressOutputStreams) {
    prevSysOut = System.out;
    prevSysErr = System.err;

    try {
      sysout = new ByteArrayOutputStream();
      System.setOut(new PrintStream(sysout, true, IOUtils.UTF_8));
      syserr = new ByteArrayOutputStream();
      System.setErr(new PrintStream(syserr, true, IOUtils.UTF_8));
    } catch (UnsupportedEncodingException e) {
      throw new RuntimeException(e);
    }
  }

  FailureMarker.resetFailures();
  System.setProperty(TestRuleIgnoreTestSuites.PROPERTY_RUN_NESTED, "true");
}
项目:NYBC    文件:WithNestedTests.java   
@Before
public final void before() {
  if (suppressOutputStreams) {
    prevSysOut = System.out;
    prevSysErr = System.err;

    try {
      sysout = new ByteArrayOutputStream();
      System.setOut(new PrintStream(sysout, true, "UTF-8"));
      syserr = new ByteArrayOutputStream();
      System.setErr(new PrintStream(syserr, true, "UTF-8"));
    } catch (UnsupportedEncodingException e) {
      throw new RuntimeException(e);
    }
  }

  System.setProperty(TestRuleIgnoreTestSuites.PROPERTY_RUN_NESTED, "true");
}
项目:Maskana-Gestor-de-Conocimiento    文件:WithNestedTests.java   
@Before
public final void before() {
  if (suppressOutputStreams) {
    prevSysOut = System.out;
    prevSysErr = System.err;

    try {
      sysout = new ByteArrayOutputStream();
      System.setOut(new PrintStream(sysout, true, "UTF-8"));
      syserr = new ByteArrayOutputStream();
      System.setErr(new PrintStream(syserr, true, "UTF-8"));
    } catch (UnsupportedEncodingException e) {
      throw new RuntimeException(e);
    }
  }

  System.setProperty(TestRuleIgnoreTestSuites.PROPERTY_RUN_NESTED, "true");
}
项目:search    文件:WithNestedTests.java   
protected static boolean isRunningNested() {
  return TestRuleIgnoreTestSuites.isRunningNested();
}
项目:NYBC    文件:WithNestedTests.java   
protected static boolean isRunningNested() {
  return TestRuleIgnoreTestSuites.isRunningNested();
}
项目:Maskana-Gestor-de-Conocimiento    文件:WithNestedTests.java   
protected static boolean isRunningNested() {
  return TestRuleIgnoreTestSuites.isRunningNested();
}