Skip to content

Instantly share code, notes, and snippets.

@foyzulkarim
Created June 5, 2014 14:02
Show Gist options
  • Save foyzulkarim/c75f244a882d712b8b46 to your computer and use it in GitHub Desktop.
Save foyzulkarim/c75f244a882d712b8b46 to your computer and use it in GitHub Desktop.
Test class to test MyXMLParser
import org.junit.Assert;
import org.junit.Test;
import static org.junit.Assert.*;
public class MyXmlParserTest {
@Test
public void testGetValue() throws Exception {
MyXmlParser class1 = new MyXmlParser();
String value = class1.getValue("<xml>test</xml>");
Assert.assertEquals("Failed", "test", value);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment