Package org.infinitest.toolkit

Examples of org.infinitest.toolkit.Block


        new OptionalArgumentOptionSpec<Void>( "max" ).ofType( Object.class );
    }

    @Test
    public void requiredArgOfValueTypeBasedOnValueOf() {
        assertNoException( new Block() {
            public void execute() {
                new RequiredArgumentOptionSpec<Void>( "threshold" ).ofType( ValueOfHaver.class );
            }
        } );
    }
View Full Code Here


        } );
    }

    @Test
    public void optionalArgOfValueTypeBasedOnValueOf() {
        assertNoException( new Block() {
            public void execute() {
                new OptionalArgumentOptionSpec<Void>( "abc" ).ofType( ValueOfHaver.class );
            }
        } );
    }
View Full Code Here

        } );
    }

    @Test
    public void requiredArgOfValueTypeBasedOnCtor() {
        assertNoException( new Block() {
            public void execute() {
                new RequiredArgumentOptionSpec<Void>( "threshold" ).ofType( Ctor.class );
            }
        } );
    }
View Full Code Here

    @Test
    public void optionalArgOfValueTypeBasedOnCtor() {
        final OptionalArgumentOptionSpec<Ctor> spec = new OptionalArgumentOptionSpec<>( "abc" );

        assertNoException( new Block() {
            public void execute() {
                spec.ofType( Ctor.class );
                assertEquals( "foo", spec.convert( "foo" ).getS() );
            }
        } );
View Full Code Here

TOP

Related Classes of org.infinitest.toolkit.Block

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.