#Refactor - Ordner struktur geändert

main
Daniel Zikol 2025-12-12 21:04:43 +01:00
parent 48fc129967
commit 15a5aeb3c9
14 changed files with 37 additions and 25 deletions

View File

@ -1,4 +1,4 @@
package shop;
package shop.backend;
/*
@ -15,5 +15,15 @@ public class CartPosition {
this.product = product;
this.quantity = quantity;
}
public double getTotalPrice(){
return product.getNetPrice() * quantity;
}
public Product getProduct(){
return product;
}
public int getQuantity(){
return quantity;
}
}

View File

@ -1,4 +1,4 @@
package shop;
package shop.backend;
/*
Controller Klasse des Projektes.
TODO
@ -25,8 +25,7 @@ public class OnlineShop {
}
public String[] produktListe() {
String[] produkt = new String[lager.size()];
public String[] produktListe() { String[] produkt = new String[lager.size()];
for (int i = 0; i < lager.size(); i++)
produkt[i] = lager.get(i).toString();
@ -36,6 +35,7 @@ public class OnlineShop {
ArrayList<String> lines = new ArrayList<>();
Scanner sc = new Scanner(new File(path));
while (sc.hasNextLine()) {
lines.add(sc.nextLine());
}

View File

@ -1,4 +1,4 @@
package shop;
package shop.backend;
/*
TODO Kassenbon System
*/

View File

@ -1,4 +1,6 @@
package shop;
package shop.frontend;
import shop.backend.OnlineShop;
import java.util.Scanner;

View File

@ -1,5 +0,0 @@
package shop;
class CartTest {
}

View File

@ -1,5 +0,0 @@
package shop;
class OrderTest {
}

View File

@ -1,5 +0,0 @@
package shop;
class ShopTUITest {
}

View File

@ -0,0 +1,5 @@
package shop.backend;
class CartTest {
}

View File

@ -0,0 +1,5 @@
package shop.backend;
class OrderTest {
}

View File

@ -1,4 +1,4 @@
package shop;
package shop.backend;
import org.junit.jupiter.api.Test;

View File

@ -0,0 +1,5 @@
package shop.frontend;
class ShopTUITest {
}