From 237606e9d76d3e65fe86e8be8b79d953f7c579fc Mon Sep 17 00:00:00 2001 From: Adam NAILI Date: Thu, 1 Feb 2018 22:08:59 +0100 Subject: Correcting untracked dir --- .../wallj/controller/DisplayControllerTest.java | 44 ---------------------- 1 file changed, 44 deletions(-) delete mode 100644 src/test/java/fr/umlv/java/wallj/controller/DisplayControllerTest.java (limited to 'src/test/java') diff --git a/src/test/java/fr/umlv/java/wallj/controller/DisplayControllerTest.java b/src/test/java/fr/umlv/java/wallj/controller/DisplayControllerTest.java deleted file mode 100644 index bcd4de9..0000000 --- a/src/test/java/fr/umlv/java/wallj/controller/DisplayControllerTest.java +++ /dev/null @@ -1,44 +0,0 @@ -package fr.umlv.java.wallj.controller; - -import fr.umlv.java.wallj.board.Board; -import fr.umlv.java.wallj.board.TileVec2; -import fr.umlv.java.wallj.context.Context; -import fr.umlv.java.wallj.context.Game; -import fr.umlv.java.wallj.context.ScreenManager; -import fr.umlv.java.wallj.block.Block; -import fr.umlv.java.wallj.block.BlockFactory; -import fr.umlv.java.wallj.block.BlockType; -import fr.umlv.zen5.Application; -import org.junit.jupiter.api.Test; - -import java.awt.*; -import java.util.Collections; -import java.util.LinkedList; - -public class DisplayControllerTest { - @Test - void TestDisplay() throws java.lang.InterruptedException { - - Application.run(Color.WHITE, applicationContext -> { - for (; ; ) { - applicationContext.renderFrame(graphics2D -> { - Board.Builder builder = new Board.Builder(51, 51); - TileVec2 t0 = TileVec2.of(50, 50); - builder.setBlockTypeAt(t0, BlockType.WALL); - LinkedList boards = new LinkedList<>(); - boards.add(builder.build()); - Game game = new Game(boards); - ScreenManager screenManager = new ScreenManager(applicationContext, graphics2D); - try { - Thread.sleep(50); - } catch (Exception e) { - System.exit(-1); - } - Context context = new Context(game, Collections.emptyList(), screenManager.clearScreen()); - Block block = BlockFactory.build(BlockType.BOMB, t0); - block.update(context); - }); - } - }); - } -} -- cgit v1.2.3