Browse Source

Test 3

master
Bruno Klasing 1 year ago
parent
commit
249ee6fe65
1 changed files with 22 additions and 0 deletions
  1. 22
    0
      test/MainTest.java

+ 22
- 0
test/MainTest.java View File

@@ -0,0 +1,22 @@
import org.junit.jupiter.api.Test;

import java.io.ByteArrayInputStream;

import static org.junit.jupiter.api.Assertions.*;

class MainTest {

@Test
public void testFirstTryRight() {

//Arrange
byte[] bytes = "hofmannol\nGeronimo\n".getBytes();
ByteArrayInputStream in = new ByteArrayInputStream(bytes);

//Act
boolean logged_in = Main.login(in);

assertTrue(logged_in);
}

}

Loading…
Cancel
Save