コード例 #1
0
ファイル: TestTest.java プロジェクト: peas/gradle
 @org.junit.Test
 public void testExcludes() {
   assertSame(test, test.exclude(TEST_PATTERN_1, TEST_PATTERN_2));
   assertEquals(toLinkedSet(TEST_PATTERN_1, TEST_PATTERN_2), test.getExcludes());
   test.exclude(TEST_PATTERN_3);
   assertEquals(toLinkedSet(TEST_PATTERN_1, TEST_PATTERN_2, TEST_PATTERN_3), test.getExcludes());
 }
コード例 #2
0
 @Test
 public void testResolveAndGetReport() throws IOException, ParseException {
   prepareResolveReport();
   ModuleDescriptor moduleDescriptor = createAnonymousModuleDescriptor();
   prepareTestsThatRetrieveDependencies(moduleDescriptor);
   assertEquals(false, ivyDependencyResolver.resolve(configurationStub).hasError());
 }
コード例 #3
0
 @Test
 public void testResolveAndGetReportWithMissingDependenciesAndFailFalse()
     throws IOException, ParseException {
   prepareResolveReportWithError(new Exception("broken"));
   ModuleDescriptor moduleDescriptor = createAnonymousModuleDescriptor();
   prepareTestsThatRetrieveDependencies(moduleDescriptor);
   assertEquals(true, ivyDependencyResolver.resolve(configurationStub).hasError());
 }