Examples of TrimCommentFilter


Examples of org.junithelper.core.filter.impl.TrimCommentFilter

    @Test
    public void addFilter_A$TrimFilterArray_2() throws Exception {
        TrimFilterManager target = new TrimFilterManager();
        // given
        TrimFilter[] filters = new TrimFilter[] { new TrimAnnotationFilter(), new TrimCommentFilter() };
        // when
        target.addFilter(filters);
        // then
        assertEquals(2, target.getFilters().size());
    }
View Full Code Here

Examples of org.junithelper.core.filter.impl.TrimCommentFilter

    }

    @Test
    public void doTrimAll_A$String_null() throws Exception {
        TrimFilterManager target = new TrimFilterManager();
        target.addFilter(new TrimCommentFilter(), new TrimQuotationFilter());
        String src = null;
        // when
        String actual = target.doTrimAll(src);
        // then
        String expected = null;
View Full Code Here

Examples of org.junithelper.core.filter.impl.TrimCommentFilter

    }

    @Test
    public void doTrimAll_A$String_notNull() throws Exception {
        TrimFilterManager target = new TrimFilterManager();
        target.addFilter(new TrimCommentFilter(), new TrimInsideOfBraceFilter(), new TrimQuotationFilter());
        String src = "package foo.var; \r\n public class Sample { \r\n// hogehoge \r\n public void hoge() { System.out.println(\"aaa\"); } }";
        // when
        String actual = target.doTrimAll(src);
        // then
        String expected = "package foo.var;   public class Sample {    public void hoge() {} }";
View Full Code Here

Examples of org.junithelper.core.filter.impl.TrimCommentFilter

    @Test
    public void removeFilter_A$Class() throws Exception {
        TrimFilterManager target = new TrimFilterManager();
        // given
        target.addFilter(new TrimCommentFilter(), new TrimInsideOfBraceFilter(), new TrimQuotationFilter());
        Class<?> filterClass = TrimQuotationFilter.class;
        // when
        target.removeFilter(filterClass);
        // then
        assertEquals(2, target.getFilters().size());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.