Author: evenisse Date: Tue Jul 26 13:51:57 2005 New Revision: 225392 URL: http://svn.apache.org/viewcvs?rev=225392&view=rev Log: Add a test (in comments) for CONTINUUM-252 Modified: maven/continuum/trunk/continuum-core-it/src/test/java/org/apache/maven/continuum/it/MavenTwoIntegrationTest.java Modified: maven/continuum/trunk/continuum-core-it/src/test/java/org/apache/maven/continuum/it/MavenTwoIntegrationTest.java URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-core-it/src/test/java/org/apache/maven/continuum/it/MavenTwoIntegrationTest.java?rev=225392&r1=225391&r2=225392&view=diff ============================================================================== --- maven/continuum/trunk/continuum-core-it/src/test/java/org/apache/maven/continuum/it/MavenTwoIntegrationTest.java (original) +++ maven/continuum/trunk/continuum-core-it/src/test/java/org/apache/maven/continuum/it/MavenTwoIntegrationTest.java Tue Jul 26 13:51:57 2005 @@ -64,7 +64,12 @@ MavenTwoBuildExecutor.ID, project ); - assertEquals( "project.notifiers.size", 1, project.getNotifiers().size() ); + assertEquals( "project.notifiers.size", 2, project.getNotifiers().size() ); + + //TODO: Activate this test when CONTINUUM-252 will be fixed + //removeNotifier( projectId, ( (ContinuumNotifier) project.getNotifiers().get( 1 ) ).getType() ); + + //assertEquals( "project.notifiers.size", 1, project.getNotifiers().size() ); Map configuration = ((ContinuumNotifier) project.getNotifiers().get( 0 )).getConfiguration(); @@ -123,6 +128,14 @@ "
" + getEmail() + "
\n" + " \n" + " \n" + + " \n" + + " irc\n" + + " \n" + + " irc.codehaus.org\n" + + " 6667\n" + + " #plexus\n" + + " \n" + + " \n" + " \n" + " \n" + " \n" + @@ -136,5 +149,19 @@ "class Foo { }" ); cvsImport( basedir, artifactId, getCvsRoot() ); + } + + private void removeNotifier( String projectId, String notifierType ) + { + try + { + getContinuum().removeNotifier( projectId, notifierType ); + } + catch( Exception e ) + { + e.printStackTrace(); + + fail( "Unexpected exception after removing notifier '" + notifierType + "' for project '" + projectId ); + } } }