Добавил:
kmosk
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:
import org.junit.Assert;
import org.junit.Test;
public class LogicTest {
@Test
public void test1() throws Exception {
String input = "0.0.0.0";
Boolean output = true;
Assert.assertEquals(Logic.checkIP(input), output);
}
@Test
public void test2() throws Exception {
String input = "255.255.255.255";
Boolean output = true;
Assert.assertEquals(Logic.checkIP(input), output);
}
@Test
public void test3() throws Exception {
String input = "270.0.0.0";
Boolean output = false;
Assert.assertEquals(Logic.checkIP(input), output);
}
}
import org.junit.Test;
public class LogicTest {
@Test
public void test1() throws Exception {
String input = "0.0.0.0";
Boolean output = true;
Assert.assertEquals(Logic.checkIP(input), output);
}
@Test
public void test2() throws Exception {
String input = "255.255.255.255";
Boolean output = true;
Assert.assertEquals(Logic.checkIP(input), output);
}
@Test
public void test3() throws Exception {
String input = "270.0.0.0";
Boolean output = false;
Assert.assertEquals(Logic.checkIP(input), output);
}
}
Соседние файлы в папке lab2