Texturen Paket in git hinzugefügt, Pfade in Test und Spiel_Gui angepast
This commit is contained in:
@@ -21,15 +21,16 @@ class TEST_Texturenpaket {
|
||||
|
||||
@Test
|
||||
void FehlerFreiesPaketLaden() {
|
||||
paket = new Texturenpaket("/home/sebastian/testpaket.zip");
|
||||
paket = new Texturenpaket("StandartTexturenBeta.zip");
|
||||
assertTrue(paket.ladePacket());
|
||||
System.out.println("Name des Texturen Paketes: " + paket.getName());
|
||||
System.out.println("Level des Texturen Paketes: " + paket.getLevel());
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
void FehlerFreiesPaketLaden2() {
|
||||
paket = new Texturenpaket("/home/sebastian/StandartTexturenBeta.zip");
|
||||
paket = new Texturenpaket("StandartTexturenBeta2.zip");
|
||||
assertTrue(paket.ladePacket());
|
||||
System.out.println("Name des Texturen Paketes: " + paket.getName());
|
||||
System.out.println("Level des Texturen Paketes: " + paket.getLevel());
|
||||
@@ -37,7 +38,7 @@ class TEST_Texturenpaket {
|
||||
|
||||
@Test
|
||||
void FehlerHaftesPaketLaden() {
|
||||
paket = new Texturenpaket("/home/sebastian/testpaket_fehler.zip");
|
||||
paket = new Texturenpaket("StandartTexturenFehler");
|
||||
assertFalse(paket.ladePacket());
|
||||
System.out.println("Name des Fehlerhaften Texturen Paketes: " + paket.getName());
|
||||
System.out.println("Level des Fehlerhaften Texturen Paketes: " + paket.getLevel());
|
||||
@@ -46,12 +47,12 @@ class TEST_Texturenpaket {
|
||||
|
||||
@Test
|
||||
void TexturenAusgeben() {
|
||||
paket = new Texturenpaket("/home/sebastian/testpaket.zip");
|
||||
paket = new Texturenpaket("StandartTexturenBeta.zip");
|
||||
assertTrue(paket.ladePacket());
|
||||
Image Bilder[] = paket.getTexturen();
|
||||
for(int i = 0; i < 32; i++) {
|
||||
assertTrue(Bilder[i] != null);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@@ -19,7 +19,7 @@ class TEST_Texturenpakete {
|
||||
@Test
|
||||
void test() {
|
||||
assertTrue(pakete.getAnzahlPakete()==0);
|
||||
assertTrue(pakete.addPaket("/home/sebastian/StandartTexturenBeta.zip"));
|
||||
assertTrue(pakete.addPaket("StandartTexturenBeta2.zip"));
|
||||
assertTrue(pakete.getAnzahlPakete()==1);
|
||||
assertTrue(pakete.setAktivesPaket(0));
|
||||
assertTrue(pakete.getAktivesPaket()==0);
|
||||
|
@@ -35,7 +35,7 @@ public class Spiel_GUI extends JPanel implements ActionListener {
|
||||
* Initialize the contents of the frame.
|
||||
*/
|
||||
|
||||
//Test GUI f<>r JauJau
|
||||
//Test GUI f<>r JauJau
|
||||
|
||||
private void initialize(Spielerverwaltung speicherung) {
|
||||
this.spielerverwaltung = speicherung;
|
||||
@@ -45,7 +45,7 @@ public class Spiel_GUI extends JPanel implements ActionListener {
|
||||
panel_main.setLayout(new BoxLayout(panel_main, BoxLayout.X_AXIS));
|
||||
|
||||
|
||||
texturen.addPaket("C:\\Users\\Elmar\\Downloads\\StandartTexturenBeta2.zip");
|
||||
texturen.addPaket("StandartTexturenBeta2.zip");
|
||||
texturen.setAktivesPaket(0);
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user