Пример #1
0
 @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());
 }
 @Test
 public void testResolveAndGetReport() throws IOException, ParseException {
   prepareResolveReport();
   ModuleDescriptor moduleDescriptor = createAnonymousModuleDescriptor();
   prepareTestsThatRetrieveDependencies(moduleDescriptor);
   assertEquals(false, ivyDependencyResolver.resolve(configurationStub).hasError());
 }
 @Test
 public void testResolveAndGetReportWithMissingDependenciesAndFailFalse()
     throws IOException, ParseException {
   prepareResolveReportWithError(new Exception("broken"));
   ModuleDescriptor moduleDescriptor = createAnonymousModuleDescriptor();
   prepareTestsThatRetrieveDependencies(moduleDescriptor);
   assertEquals(true, ivyDependencyResolver.resolve(configurationStub).hasError());
 }