Examples of beat()


Examples of com.sirenian.hellbound.domain.glyph.StubHeartbeat.beat()

       
        glyphListener.stubs("reportGlyphMovement").with(eq(GlyphType.JUNK), anything(), anything());
        glyphListener.expects("reportGlyphMovement").with(eq(GlyphType.T), anything(), eq(initialSegments));
        glyphListener.expects("reportGlyphMovement").with(eq(GlyphType.T), eq(initialSegments), eq(initialSegments.movedDown()));
        game.requestStartGame();
        heartbeat.beat();
       
        verifyMocks();
    }

   
View Full Code Here

Examples of com.sirenian.hellbound.domain.glyph.StubHeartbeat.beat()

        Game game = new Game(factory, heartbeat, 7, 13);
        game.addGlyphListener((GlyphListener) glyphListener);
       
        glyphListener.stubs("reportGlyphMovement").never();
       
        heartbeat.beat();
        game.requestGlyphMovement(GlyphMovement.DOWN);
        game.requestGlyphMovement(GlyphMovement.LEFT);
        game.requestGlyphMovement(GlyphMovement.RIGHT);
        game.requestGlyphMovement(GlyphMovement.DROP);
        game.requestGlyphMovement(GlyphMovement.ROTATE_LEFT);
View Full Code Here

Examples of com.sirenian.hellbound.domain.glyph.StubHeartbeat.beat()

        Game game = new Game((GlyphFactory) glyphFactoryMock, heartbeat, 7, 13);
        game.requestStartGame();
       
        // When...
        game.requestGlyphMovement(GlyphMovement.DROP);
        heartbeat.beat();
       
        //Then...
        ensureThat(firstGlyph.getSegments(), eq(Segments.EMPTY));
        ensureThat(junk.getSegments(), eq(segmentsForTShapeOnFloor));
        verifyMocks();       
View Full Code Here

Examples of com.sirenian.hellbound.domain.glyph.StubHeartbeat.beat()

        gameListener.expects("reportGameStateChanged").with(GameState.RUNNING);
        gameListener.expects("reportGameStateChanged").with(GameState.OVER);
        game.addGameListener((GameListener) gameListener);
       
       
        heartbeat.beat(); // first glyph falls; cannot add second glyph as it overlaps
       
        verifyMocks();
       
        ensureThat(!heartbeat.isBeating());
       
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.