Package com.asakusafw.compiler.flow.testing.model

Examples of com.asakusafw.compiler.flow.testing.model.Ex1


        MockResult<Ex1> stop = mapper.create("stop");

        @SuppressWarnings("unchecked")
        Result<Ex1> f = (Result<Ex1>) create(loader, name, mapper.toArguments());

        Ex1 ex1 = new Ex1();
        ex1.setValue(-100);
        f.add(ex1);
        assertThat(high.getResults().size(), is(0));
        assertThat(low.getResults().size(), is(0));
        assertThat(stop.getResults().size(), is(1));
        assertThat(stop.getResults().get(0), is(ex1));
        stop.getResults().clear();

        ex1.setValue(0);
        f.add(ex1);
        assertThat(high.getResults().size(), is(0));
        assertThat(low.getResults().size(), is(0));
        assertThat(stop.getResults().size(), is(1));
        assertThat(stop.getResults().get(0), is(ex1));
        stop.getResults().clear();

        ex1.setValue(1);
        f.add(ex1);
        assertThat(high.getResults().size(), is(0));
        assertThat(low.getResults().size(), is(1));
        assertThat(stop.getResults().size(), is(0));
        assertThat(low.getResults().get(0), is(ex1));
        low.getResults().clear();

        ex1.setValue(50);
        f.add(ex1);
        assertThat(high.getResults().size(), is(0));
        assertThat(low.getResults().size(), is(1));
        assertThat(stop.getResults().size(), is(0));
        assertThat(low.getResults().get(0), is(ex1));
        low.getResults().clear();

        ex1.setValue(100);
        f.add(ex1);
        assertThat(high.getResults().size(), is(0));
        assertThat(low.getResults().size(), is(1));
        assertThat(stop.getResults().size(), is(0));
        assertThat(low.getResults().get(0), is(ex1));
        low.getResults().clear();

        ex1.setValue(101);
        f.add(ex1);
        assertThat(high.getResults().size(), is(1));
        assertThat(low.getResults().size(), is(0));
        assertThat(stop.getResults().size(), is(0));
        assertThat(high.getResults().get(0), is(ex1));
        high.getResults().clear();

        ex1.setValue(150);
        f.add(ex1);
        assertThat(high.getResults().size(), is(1));
        assertThat(low.getResults().size(), is(0));
        assertThat(stop.getResults().size(), is(0));
        assertThat(high.getResults().get(0), is(ex1));
View Full Code Here


        MockResult<Ex1> stop = mapper.create("stop");

        @SuppressWarnings("unchecked")
        Result<Ex1> f = (Result<Ex1>) create(loader, name, mapper.toArguments());

        Ex1 ex1 = new Ex1();
        ex1.setValue(-100);
        f.add(ex1);
        assertThat(high.getResults().size(), is(0));
        assertThat(low.getResults().size(), is(0));
        assertThat(stop.getResults().size(), is(1));
        assertThat(stop.getResults().get(0), is(ex1));
        stop.getResults().clear();

        ex1.setValue(0);
        f.add(ex1);
        assertThat(high.getResults().size(), is(0));
        assertThat(low.getResults().size(), is(0));
        assertThat(stop.getResults().size(), is(1));
        assertThat(stop.getResults().get(0), is(ex1));
        stop.getResults().clear();

        ex1.setValue(1);
        f.add(ex1);
        assertThat(high.getResults().size(), is(0));
        assertThat(low.getResults().size(), is(1));
        assertThat(stop.getResults().size(), is(0));
        assertThat(low.getResults().get(0), is(ex1));
        low.getResults().clear();

        ex1.setValue(25);
        f.add(ex1);
        assertThat(high.getResults().size(), is(0));
        assertThat(low.getResults().size(), is(1));
        assertThat(stop.getResults().size(), is(0));
        assertThat(low.getResults().get(0), is(ex1));
        low.getResults().clear();

        ex1.setValue(50);
        f.add(ex1);
        assertThat(high.getResults().size(), is(0));
        assertThat(low.getResults().size(), is(1));
        assertThat(stop.getResults().size(), is(0));
        assertThat(low.getResults().get(0), is(ex1));
        low.getResults().clear();

        ex1.setValue(51);
        f.add(ex1);
        assertThat(high.getResults().size(), is(1));
        assertThat(low.getResults().size(), is(0));
        assertThat(stop.getResults().size(), is(0));
        assertThat(high.getResults().get(0), is(ex1));
        high.getResults().clear();

        ex1.setValue(100);
        f.add(ex1);
        assertThat(high.getResults().size(), is(1));
        assertThat(low.getResults().size(), is(0));
        assertThat(stop.getResults().size(), is(0));
        assertThat(high.getResults().get(0), is(ex1));
View Full Code Here

TOP

Related Classes of com.asakusafw.compiler.flow.testing.model.Ex1

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.