Created
June 5, 2014 14:02
-
-
Save foyzulkarim/c75f244a882d712b8b46 to your computer and use it in GitHub Desktop.
Test class to test MyXMLParser
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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