Datei PipeTest angepasst, sodass der Code den aktuellen Stand testet.(No
Use)
This commit is contained in:
parent
2326dd6965
commit
00a38facef
1 changed files with 28 additions and 28 deletions
|
@ -16,6 +16,9 @@
|
|||
*/
|
||||
package test;
|
||||
|
||||
import utils.FifoPipe;
|
||||
import utils.Message;
|
||||
|
||||
/**
|
||||
* Dies ist eine Test-Klasse
|
||||
*
|
||||
|
@ -24,44 +27,41 @@ package test;
|
|||
public class PipeTest {
|
||||
|
||||
public static void main(String[] args) {
|
||||
/*FifoPipe pipe = new FifoPipe();
|
||||
System.out.println("Erstes Element: " + pipe.firstElement);
|
||||
System.out.println("Letztes Element: " + pipe.lastElement);
|
||||
FifoPipe pipe = new FifoPipe();
|
||||
// System.out.println("Erstes Element: " + pipe.firstElement);
|
||||
// System.out.println("Letztes Element: " + pipe.lastElement);
|
||||
Message el = new Message("Christian", "Test");
|
||||
pipe.setElement(el);
|
||||
System.out.println("Angehängt");
|
||||
System.out.println("Erstes Element: " + pipe.firstElement);
|
||||
System.out.println("Letztes Element: " + pipe.lastElement);
|
||||
System.out.println("Erstes Element Inhalt: " + pipe.firstElement.getData().gebeData());
|
||||
System.out.println("Letztes Element Inhalt: " + pipe.lastElement.getData().gebeData());
|
||||
// System.out.println("Erstes Element: " + pipe.firstElement);
|
||||
// System.out.println("Letztes Element: " + pipe.lastElement);
|
||||
// System.out.println("Erstes Element Inhalt: " + pipe.firstElement.getData().getMessage());
|
||||
// System.out.println("Letztes Element Inhalt: " + pipe.lastElement.getData().getMessage());
|
||||
Message el2 = new Message("Christian", "Test");
|
||||
pipe.setElement(el2);
|
||||
System.out.println("Angehängt2");
|
||||
System.out.println("Erstes Element: " + pipe.firstElement);
|
||||
System.out.println("Letztes Element: " + pipe.lastElement);
|
||||
System.out.println("Erstes Element Inhalt: " + pipe.firstElement.getData().gebeData());
|
||||
System.out.println("Letztes Element Inhalt: " + pipe.lastElement.getData().gebeData());
|
||||
Message pipeElement = pipe.getNextElement();
|
||||
// System.out.println("Erstes Element: " + pipe.firstElement);
|
||||
// System.out.println("Letztes Element: " + pipe.lastElement);
|
||||
// System.out.println("Erstes Element Inhalt: " + pipe.firstElement.getData().getMessage());
|
||||
// System.out.println("Letztes Element Inhalt: " + pipe.lastElement.getData().getMessage());
|
||||
Message message = pipe.getNextElement();
|
||||
System.out.println("Oben entnommen");
|
||||
System.out.println("Entnommen Inhalt: " + pipeElement.getData().gebeData());
|
||||
System.out.println("Erstes Element: " + pipe.firstElement);
|
||||
System.out.println("Letztes Element: " + pipe.lastElement);
|
||||
System.out.println("Erstes Element Inhalt: " + pipe.firstElement.getData().gebeData());
|
||||
System.out.println("Letztes Element Inhalt: " + pipe.lastElement.getData().gebeData());
|
||||
Message pipeElement2 = pipe.getNextElement();
|
||||
System.out.println("Entnommen Inhalt: " + message.getMessage());
|
||||
// System.out.println("Erstes Element: " + pipe.firstElement);
|
||||
// System.out.println("Letztes Element: " + pipe.lastElement);
|
||||
// System.out.println("Erstes Element Inhalt: " + pipe.firstElement.getData().getMessage());
|
||||
// System.out.println("Letztes Element Inhalt: " + pipe.lastElement.getData().getMessage());
|
||||
Message message2 = pipe.getNextElement();
|
||||
System.out.println("Oben entnommen2");
|
||||
System.out.println("Entnommen Inhalt: " + pipeElement2.getData().gebeData());
|
||||
System.out.println("Erstes Element: " + pipe.firstElement);
|
||||
System.out.println("Letztes Element: " + pipe.lastElement);
|
||||
System.out.println("Entnommen Inhalt: " + message2.getMessage());
|
||||
// System.out.println("Erstes Element: " + pipe.firstElement);
|
||||
// System.out.println("Letztes Element: " + pipe.lastElement);
|
||||
//Wieso wills nicht funktionieren?
|
||||
Message pipeElement3 = pipe.getNextElement();
|
||||
Message message3 = pipe.getNextElement();
|
||||
System.out.println("Oben entnommen3");
|
||||
//System.out.println(pipeElement3.getData().gebeData());
|
||||
System.out.println("Erstes Element: " + pipe.firstElement);
|
||||
System.out.println("Letztes Element: " + pipe.lastElement);
|
||||
|
||||
ArrayHelper test = new ArrayHelper();
|
||||
*/
|
||||
System.out.println(message3.getMessage());
|
||||
// System.out.println("Erstes Element: " + pipe.firstElement);
|
||||
// System.out.println("Letztes Element: " + pipe.lastElement);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue