Package org.jrebirth.af.core.command.basic

Examples of org.jrebirth.af.core.command.basic.SwitchFullScreenCommand


    @Test
    public void registerCommandWithKey() {

        final long key = System.currentTimeMillis();
        final SwitchFullScreenCommand command = new SwitchFullScreenCommand();
        this.commandFacade.register(command, key);
        Assert.assertTrue(this.commandFacade.exists(SwitchFullScreenCommand.class, key));
    }
View Full Code Here


    }

    @Test
    public void registerCommandWithOutKey() {

        final SwitchFullScreenCommand command = new SwitchFullScreenCommand();
        this.commandFacade.register(command);
        Assert.assertTrue(this.commandFacade.exists(SwitchFullScreenCommand.class));
    }
View Full Code Here

    @Test
    public void retrieveCommand() {

        final long key = System.currentTimeMillis();
        final SwitchFullScreenCommand command = this.commandFacade.retrieve(SwitchFullScreenCommand.class, key);
        Assert.assertNotNull(command);
    }
View Full Code Here

    }

    @Test
    public void unregisterCommandWithOutKey() {

        final SwitchFullScreenCommand command = this.commandFacade.retrieve(SwitchFullScreenCommand.class);
        this.commandFacade.unregister(command);
        Assert.assertNotNull(this.commandFacade.exists(SwitchFullScreenCommand.class));
    }
View Full Code Here

    @Test
    public void unregisterCommandWithKey() {

        final long key = System.currentTimeMillis();
        final SwitchFullScreenCommand command = this.commandFacade.retrieve(SwitchFullScreenCommand.class, key);
        this.commandFacade.unregister(command, key);
        assertNotNull(this.commandFacade.exists(SwitchFullScreenCommand.class, key));
    }
View Full Code Here

TOP

Related Classes of org.jrebirth.af.core.command.basic.SwitchFullScreenCommand

Copyright © 2018 www.massapicom. 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.