Package org.junithelper.core.config

Examples of org.junithelper.core.config.Configuration


    public void isAvailableType_A$String$Configuration_false() throws Exception {
        ClassMeta classMeta = new ClassMeta();
        AvailableTypeDetector target = new AvailableTypeDetector(classMeta);
        // given
        String typeName = "org.juithelper.core.Version";
        Configuration config = new Configuration();
        // when
        boolean actual = target.isAvailableType(typeName, config);
        // then
        boolean expected = false;
        assertEquals(expected, actual);
View Full Code Here


    @Test
    public void isAvailableType_A$String$Configuration_StringIsNull() throws Exception {
        ClassMeta classMeta = null;
        AvailableTypeDetector target = new AvailableTypeDetector(classMeta);
        String typeName = null;
        Configuration config = null;
        boolean actual = target.isAvailableType(typeName, config);
        boolean expected = false;
        assertThat(actual, is(equalTo(expected)));
    }
View Full Code Here

    @Test
    public void isAvailableType_A$String$Configuration_StringIsEmpty() throws Exception {
        ClassMeta classMeta = new ClassMeta();
        AvailableTypeDetector target = new AvailableTypeDetector(classMeta);
        String typeName = "";
        Configuration config = null;
        boolean actual = target.isAvailableType(typeName, config);
        boolean expected = false;
        assertThat(actual, is(equalTo(expected)));
    }
View Full Code Here

        assertThat(ConstructorGeneratorFactory.class, notNullValue());
    }

    @Test
    public void create_A$Configuration$LineBreakProvider() throws Exception {
        Configuration config = new Configuration();
        LineBreakProvider lineBreakProvider = new LineBreakProvider(config, CurrentLineBreak.CRLF);
        ConstructorGenerator actual = ConstructorGeneratorFactory.create(config, lineBreakProvider);
        assertThat(actual, is(notNullValue()));
    }
View Full Code Here

        assertThat(IndentationProvider.class, notNullValue());
    }

    @Test
    public void instantiation() throws Exception {
        Configuration config = null;
        IndentationProvider target = new IndentationProvider(config);
        assertThat(target, notNullValue());
    }
View Full Code Here

        assertThat(target, notNullValue());
    }

    @Test
    public void getIndentation_A$_hardTabs() throws Exception {
        Configuration config = new Configuration();
        IndentationProvider target = new IndentationProvider(config);
        String actual = target.getIndentation();
        String expected = "\t";
        assertThat(actual, is(equalTo(expected)));
    }
View Full Code Here

        assertThat(actual, is(equalTo(expected)));
    }

    @Test
    public void getIndentation_A$_softTabs() throws Exception {
        Configuration config = new Configuration();
        config.useSoftTabs = true;
        IndentationProvider target = new IndentationProvider(config);
        String actual = target.getIndentation();
        String expected = "    ";
        assertThat(actual, is(equalTo(expected)));
View Full Code Here

        assertThat(actual, is(equalTo(expected)));
    }

    @Test
    public void getIndentation_A$_softTabs2() throws Exception {
        Configuration config = new Configuration();
        config.useSoftTabs = true;
        config.softTabSize = 2;
        IndentationProvider target = new IndentationProvider(config);
        String actual = target.getIndentation();
        String expected = "  ";
View Full Code Here

        assertNotNull(ImportedListExtractor.class);
    }

    @Test
    public void instantiation() throws Exception {
        Configuration config = null;
        ImportedListExtractor target = new ImportedListExtractor(config);
        assertNotNull(target);
    }
View Full Code Here

        assertNotNull(target);
    }

    @Test
    public void extract_A$String() throws Exception {
        Configuration config = new Configuration();
        ImportedListExtractor target = new ImportedListExtractor(config);
        // given
        String sourceCodeString = "package foo.var; import java.util.List; import java.io.InputStream; public class Sample { }";
        // when
        List<String> actual = target.extract(sourceCodeString);
View Full Code Here

TOP

Related Classes of org.junithelper.core.config.Configuration

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.