Author: vsiveton
Date: Wed Jun 25 05:23:19 2008
New Revision: 671527
URL: http://svn.apache.org/viewvc?rev=671527&view=rev
Log:
MANT-42: Update to p-u 1.5.4
o removed test codes
Modified:
maven/plugins/trunk/maven-ant-plugin/src/test/java/org/apache/maven/plugin/ant/AntBuildWriterUtilTest.java
Modified:
maven/plugins/trunk/maven-ant-plugin/src/test/java/org/apache/maven/plugin/ant/AntBuildWriterUtilTest.java
URL:
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-ant-plugin/src/test/java/org/apache/maven/plugin/ant/AntBuildWriterUtilTest.java?rev=671527&r1=671526&r2=671527&view=diff
==============================================================================
---
maven/plugins/trunk/maven-ant-plugin/src/test/java/org/apache/maven/plugin/ant/AntBuildWriterUtilTest.java
(original)
+++
maven/plugins/trunk/maven-ant-plugin/src/test/java/org/apache/maven/plugin/ant/AntBuildWriterUtilTest.java
Wed Jun 25 05:23:19 2008
@@ -41,50 +41,6 @@
extends PlexusTestCase
{
/**
- * Test method for
'org.apache.maven.plugin.ant.AntBuildWriterUtil.writeComment(XMLWriter, String)'
- */
- public void testWriteCommentNull()
- {
- StringWriter s = new StringWriter();
- XMLWriter writer = new PrettyPrintXMLWriter( s );
- XmlWriterUtil.writeComment( writer, null );
- StringBuffer sb = new StringBuffer();
- sb.append( "<!-- null
-->" ).append( '\n' );
- assertTrue( s.toString().equals( sb.toString() ) );
- }
-
- /**
- * Test method for
'org.apache.maven.plugin.ant.AntBuildWriterUtil.writeComment(XMLWriter, String)'
- */
- public void testWriteCommentShort()
- {
- StringWriter s = new StringWriter();
- XMLWriter writer = new PrettyPrintXMLWriter( s );
- XmlWriterUtil.writeComment( writer, "This is a short text" );
- StringBuffer sb = new StringBuffer();
- sb.append( "<!-- This is a short text
-->" ).append( '\n' );
- assertTrue( s.toString().equals( sb.toString() ) );
- }
-
- /**
- * Test method for
'org.apache.maven.plugin.ant.AntBuildWriterUtil.writeComment(XMLWriter, String)'
- */
- public void testWriteCommentLong()
- {
- StringWriter s = new StringWriter();
- XMLWriter writer = new PrettyPrintXMLWriter( s );
- XmlWriterUtil.writeComment( writer, "Maven is a software project
management and comprehension tool. "
- + "Based on the concept of a project object model (POM), Maven can
manage a project's build, reporting "
- + "and documentation from a central piece of information." );
- StringBuffer sb = new StringBuffer();
- sb.append( "<!-- Maven is a software project management and
comprehension tool. Based -->" ).append( '\n' );
- sb.append( "<!-- on the concept of a project object model (POM), Maven
can manage a -->" ).append( '\n' );
- sb.append( "<!-- project's build, reporting and documentation from a
central piece of -->" ).append( '\n' );
- sb.append( "<!-- information.
-->" ).append( '\n' );
- assertTrue( s.toString().equals( sb.toString() ) );
- }
-
- /**
* Test method for
'org.apache.maven.plugin.ant.AntBuildWriterUtil.getMavenCompilerPluginConfiguration(MavenProject,
String, String)'
*
* @throws Exception