
test.com.generationjava.web.XmlWTest Maven / Gradle / Ivy
package com.generationjava.web;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import junit.textui.TestRunner;
public class XmlWTest extends TestCase {
public XmlWTest(String name) {
super(name);
}
//-----------------------------------------------------------------------
// To test:
// XmlW.removeXml
// XmlW.getContent
public void testRemove() {
assertEquals( "FOO", XmlW.removeXml("FOO ") );
assertEquals( "FOO", XmlW.removeXml("FOO ") );
assertEquals( "FOO", XmlW.removeXml(" FOO ") );
assertEquals( "FOO", XmlW.removeXml("FOO") );
assertEquals( "some comment", XmlW.removeXml("some comment
") );
assertEquals( "", XmlW.removeXml("") );
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy