Skip to content

Instantly share code, notes, and snippets.

@lbeckman314
Created March 11, 2019 22:13
Show Gist options
  • Select an option

  • Save lbeckman314/4b4b1777bf553206686d33ae3f1d913b to your computer and use it in GitHub Desktop.

Select an option

Save lbeckman314/4b4b1777bf553206686d33ae3f1d913b to your computer and use it in GitHub Desktop.
import junit.framework.TestCase;
//You can use this as a skeleton for your 3 different test approach
//It is an optional to use this file, you can generate your own test file(s) to test the target function!
// Again, it is up to you to use this file or not!
public class UrlValidatorTest extends TestCase {
public UrlValidatorTest(String testName) {
super(testName);
}
public void testManualTest()
{
//You can use this function to implement your manual testing
UrlValidator urlChecker = new UrlValidator();
assertTrue(urlChecker.isValid("http://server/~foldername"));
}
public void testYourFirstPartition()
{
//You can use this function to implement your First Partition testing
}
public void testYourSecondPartition(){
//You can use this function to implement your Second Partition testing
}
//You need to create more test cases for your Partitions if you need to
public void testIsValid()
{
//You can use this function for programming based testing
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment