@@ -0,0 +1,1601 @@
+package com.inari.firefly.control;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertNotNull;%0Aimport static org.junit.Assert.fail;%0A%0Aimport org.junit.Test;%0A%0Aimport com.inari.firefly.component.build.ComponentBuilder;%0Aimport com.inari.firefly.movement.MovementAnimationController;%0Aimport com.inari.firefly.sound.SoundController;%0A%0Apublic class ControllerSystemTest %7B%0A    %0A    @Test%0A    public void testGetComponentBuilder() %7B%0A        ControllerSystem controllerSystem = new ControllerSystem();%0A        %0A        ComponentBuilder%3CMovementAnimationController%3E componentBuilder = controllerSystem.getComponentBuilder( MovementAnimationController.class );%0A        assertNotNull( componentBuilder );%0A        assertEquals( %0A            %22com.inari.firefly.control.ControllerSystem$EntityControllerBuilder%22, %0A            componentBuilder.getClass().getName() %0A        );%0A        %0A        ComponentBuilder%3CSoundController%3E componentBuilder1 = controllerSystem.getComponentBuilder( SoundController.class );%0A        assertNotNull( componentBuilder1 );%0A        assertEquals( %0A            %22com.inari.firefly.control.ControllerSystem$ControllerBuilder%22, %0A            componentBuilder1.getClass().getName() %0A        );%0A        %0A        try %7B%0A            controllerSystem.getComponentBuilder( String.class );%0A            fail( %22Exception expected here%22 );%0A        %7D catch ( Exception e ) %7B%0A            assertEquals( %0A                %22Unsupported Component type for ControllerSystem Builder. Type: class java.lang.String%22, %0A                e.getMessage() %0A            );%0A        %7D%0A    %7D%0A%0A%7D%0A

add to index