You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@continuum.apache.org by ev...@apache.org on 2005/07/26 22:52:00 UTC
svn commit: r225392 -
/maven/continuum/trunk/continuum-core-it/src/test/java/org/apache/maven/continuum/it/MavenTwoIntegrationTest.java
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 @@
" <address>" + getEmail() + "</address>\n" +
" </configuration>\n" +
" </notifier>\n" +
+ " <notifier>\n" +
+ " <type>irc</type>\n" +
+ " <configuration>\n" +
+ " <host>irc.codehaus.org</host>\n" +
+ " <port>6667</port>\n" +
+ " <channel>#plexus</channel>\n" +
+ " </configuration>\n" +
+ " </notifier>\n" +
" </notifiers>\n" +
" </ciManagement>\n" +
" <scm>\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 );
+ }
}
}