Package net.mindengine.galen.specs

Examples of net.mindengine.galen.specs.Spec


        {
            List<Spec> specs = objects.get(0).getSpecs();
            assertThat(specs.size(), is(2));

            Spec spec1 = specs.get(0);
            Spec spec2 = specs.get(1);

            assertThat(spec1.getOriginalText(), is("text is: Login"));
            assertThat(spec1.isOnlyWarn(), is(true));

            assertThat(spec2.getOriginalText(), is("width: 100px"));
            assertThat(spec2.isOnlyWarn(), is(false));
        }

        {
            List<Spec> specs = objects.get(1).getSpecs();
            assertThat(specs.size(), is(2));

            Spec spec1 = specs.get(0);
            Spec spec2 = specs.get(1);

            assertThat(spec1.getOriginalText(), is("width: 150px"));
            assertThat(spec1.isOnlyWarn(), is(true));

            assertThat(spec2.getOriginalText(), is("height: 50px"));
            assertThat(spec2.isOnlyWarn(), is(false));
        }
    }
View Full Code Here


        boolean onlyWarn = false;
        if (specText.startsWith(ONLY_WARN_SYMBOL)) {
            specText = specText.substring(1);
            onlyWarn = true;
        }
        Spec spec = specReader.read(specText, contextPath, place);
        spec.setOnlyWarn(onlyWarn);

        return spec;
    }
View Full Code Here

TOP

Related Classes of net.mindengine.galen.specs.Spec

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.