@Test public void testDisabled() throws Exception { assertFalse(junitProvider.isEnabled(classPath(), parallelProperties())); assertFalse(junitProvider.isEnabled(classPath("foo:1.0"), parallelProperties())); assertFalse(junitProvider.isEnabled(classPath("org.junit:3.8.2"), parallelProperties())); assertFalse(junitProvider.isEnabled(classPath("org.junit:4.5.0"), parallelProperties())); assertFalse(junitProvider.isEnabled(classPath("org.junit:5.0"), parallelProperties())); assertFalse(junitProvider.isEnabled(classPath("org.junit4:5.1"), parallelProperties())); assertFalse(junitProvider.isEnabled(classPath("org.junit:4.8.1"), new Properties())); }
@Override public boolean isEnabled(List<ClasspathEntry> testBundleClassPath, Properties surefireProperties) { if (hasGroups(surefireProperties)) { return true; } if (!isParallelEnabled(surefireProperties)) { return false; } return super.isEnabled(testBundleClassPath, surefireProperties); }
JUnit47Provider extends AbstractJUnitProvider { @Override public boolean isEnabled(List<ClasspathEntry> testBundleClassPath, Properties surefireProperties) { if (hasGroups(surefireProperties)) { return true; } if (!isParallelEnabled(surefireProperties)) { return false; } return super.isEnabled(testBundleClassPath, surefireProperties); } }
JUnit47Provider extends AbstractJUnitProvider { @Override public boolean isEnabled(List<ClasspathEntry> testBundleClassPath, Properties surefireProperties) { if (hasGroups(surefireProperties)) { return true; } if (!isParallelEnabled(surefireProperties)) { return false; } return super.isEnabled(testBundleClassPath, surefireProperties); }  }
JUnit47Provider extends AbstractJUnitProvider { @Override public boolean isEnabled(List<ClasspathEntry> testBundleClassPath, Properties surefireProperties) { if (hasGroups(surefireProperties)) { return true; } if (!isParallelEnabled(surefireProperties)) { return false; } return super.isEnabled(testBundleClassPath, surefireProperties); }  @Override boolean isEnabled(List<ClasspathEntry> testBundleClassPath, Properties surefireProperties); @Override String getSurefireProviderClassName(); @Override Version getVersion(); @Override List<Dependency> getRequiredBundles(); }
JUnit47Provider extends AbstractJUnitProvider { @Override public boolean isEnabled(List<ClasspathEntry> testBundleClassPath, Properties surefireProperties) { if (hasGroups(surefireProperties)) { return true; } if (!isParallelEnabled(surefireProperties)) { return false; } return super.isEnabled(testBundleClassPath, surefireProperties); }  @Override boolean isEnabled(List<ClasspathEntry> testBundleClassPath, Properties surefireProperties); @Override String getSurefireProviderClassName(); @Override Version getVersion(); @Override List<Dependency> getRequiredBundles();  }