Testing #54

Merged
schrom01 merged 12 commits from testing into main 2022-05-13 23:03:37 +02:00
2 changed files with 28 additions and 2 deletions
Showing only changes of commit 7f8de3e8f1 - Show all commits

View File

@ -117,8 +117,6 @@ public class Factory {
innerVbox.getChildren().add(label);
}
}
public void resetFooter(BorderPane pane,boolean error) {

View File

@ -0,0 +1,28 @@
package ch.zhaw.projekt2.turnierverwaltung;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.Pane;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.mockito.InOrder;
import org.mockito.Mockito;
import static org.mockito.Mockito.inOrder;
public class FactoryTest {
private Factory factory;
@Test
@DisplayName("Test method calls")
void checkMethodCalls() {
FileIO fileIO = Mockito.mock(FileIO.class);
TournamentDecorator td = Mockito.mock(TournamentDecorator.class);
LanguageConfigurator lc = Mockito.mock(LanguageConfigurator.class);
BorderPane pane = Mockito.mock(BorderPane.class);
factory = new Factory(fileIO,td,lc);
InOrder order = inOrder(fileIO,td,lc);
factory.showTournamentList(pane);
}
}