You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pocketcommunityclient/app/src/test/java/com/community/pocket/ExampleUnitTest.java

24 lines
554 B

package com.community.pocket;
import android.util.Patterns;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() {
assertEquals(4, 2 + 2);
}
@Test
public void testIP() {
System.out.println(Patterns.WEB_URL.matcher("http:// 192.168.1.1").matches());
}
}