Skip to content
Snippets Groups Projects
Commit 2280ecc5 authored by Dennis Eisold's avatar Dennis Eisold
Browse files

Unit Tests für Reflektor, Wlaze und Steckbrett

parent a76b4bff
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,6 @@ public class ReflektorTest {
@Test
public void codiere() {
/*
Reflektor r = new Reflektor();
Assert.assertEquals('E', r.codiere('A'));
......@@ -16,18 +15,15 @@ public class ReflektorTest {
Assert.assertEquals('O', r.codiere('Q'));
Assert.assertEquals('I', r.codiere('V'));
//Assert.assertNull(null, r.codiere(null));
*/
}
@Test
public void codiere2() {
/*
Reflektor r = new Reflektor();
Assert.assertEquals('A', r.codiere('E'));
Assert.assertEquals('D', r.codiere('Z'));
Assert.assertEquals('H', r.codiere('X'));
Assert.assertEquals('Q', r.codiere('O'));
Assert.assertEquals('V', r.codiere('I'));
*/
}
}
\ No newline at end of file
......@@ -9,28 +9,28 @@ public class SteckbrettTest {
@Test
public void setzeVertauschung() {
/*Steckbrett sb = new Steckbrett();
Steckbrett sb = new Steckbrett();
sb.setzeVertauschung('A', 'G');
sb.setzeVertauschung('C', 'H');
Assert.assertEquals('H', sb.codiere('C'));
Assert.assertEquals('G', sb.codiere('A'));*/
Assert.assertEquals('G', sb.codiere('A'));
}
@Test
public void codiere() {
/*Steckbrett sb = new Steckbrett();
Steckbrett sb = new Steckbrett();
sb.setzeVertauschung('A', 'G');
sb.setzeVertauschung('C', 'H');
Assert.assertEquals('H', sb.codiere('C'));
Assert.assertEquals('G', sb.codiere('A'));*/
Assert.assertEquals('G', sb.codiere('A'));
}
@Test
public void codiere2() {
/*Steckbrett sb = new Steckbrett();
Steckbrett sb = new Steckbrett();
sb.setzeVertauschung('A', 'G');
sb.setzeVertauschung('C', 'H');
Assert.assertEquals('C', sb.codiere2('H'));
Assert.assertEquals('A', sb.codiere2('G'));*/
Assert.assertEquals('A', sb.codiere2('G'));
}
}
\ No newline at end of file
......@@ -9,37 +9,37 @@ public class WalzeTest {
@Test
public void setzeNotch() {
/*Walze w = new Walze(1);
Walze w = new Walze(1);
w.setzeNotch('G');
Assert.assertEquals('G', w.wlazenPosition());*/
Assert.assertEquals('G', w.wlazenPosition());
}
@Test
public void dreheWalze() {
/*Walze w = new Walze(1);
Walze w = new Walze(1);
w.setzeNotch('G');
w.dreheWalze();
Assert.assertEquals('H', w.wlazenPosition());*/
Assert.assertEquals('H', w.wlazenPosition());
}
@Test
public void walzenPoition() {
/*Walze w = new Walze(1);
Walze w = new Walze(1);
w.setzeNotch('G');
Assert.assertEquals('G', w.wlazenPosition());*/
Assert.assertEquals('G', w.wlazenPosition());
}
@Test
public void codiere() {
/*Walze w = new Walze(1);
Walze w = new Walze(1);
w.setzeNotch('A');
Assert.assertEquals('E', w.codiere('A'));*/
Assert.assertEquals('E', w.codiere('A'));
}
@Test
public void codiere2() {
/*Walze w = new Walze(1);
Walze w = new Walze(1);
w.setzeNotch('A');
Assert.assertEquals('A', w.codiere('E'));*/
Assert.assertEquals('A', w.codiere('E'));
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment