Package org.apache.james.jspf.tester

Examples of org.apache.james.jspf.tester.SPFYamlTestDescriptor


        public MailZoneAsynchronousSuite() throws IOException {
            super();
            List<SPFYamlTestDescriptor> tests = SPFYamlTestDescriptor.loadTests(YAMLFILE2);
            Iterator<SPFYamlTestDescriptor> i = tests.iterator();
            while (i.hasNext()) {
                SPFYamlTestDescriptor o = i.next();
                addTest(new MailZoneAsynchronousYamlTest(o));
            }
        }
View Full Code Here


        public SPFSuite() throws IOException {
            super();
            List<SPFYamlTestDescriptor> tests = SPFYamlTestDescriptor.loadTests(YAMLFILE);
            Iterator<SPFYamlTestDescriptor> i = tests.iterator();
            while (i.hasNext()) {
                SPFYamlTestDescriptor o = i.next();
                Iterator<String> ttt = o.getTests().keySet().iterator();
                while (ttt.hasNext()) {
                    addTest(new SPFYamlTest(o, ttt.next()));
                }
            }
        }
View Full Code Here

        public BasicSuite() throws IOException {
            super();
            List <SPFYamlTestDescriptor>tests = SPFYamlTestDescriptor.loadTests(YAMLFILE2);
            Iterator<SPFYamlTestDescriptor> i = tests.iterator();
            while (i.hasNext()) {
                SPFYamlTestDescriptor o = i.next();
                Iterator<String> ttt = o.getTests().keySet().iterator();
                while (ttt.hasNext()) {
                    addTest(new YamlTest(o, ttt.next()));
                }
            }
        }
View Full Code Here

        public MailZoneSuite() throws IOException {
            super();
            List<SPFYamlTestDescriptor> tests = SPFYamlTestDescriptor.loadTests(YAMLFILE2);
            Iterator<SPFYamlTestDescriptor> i = tests.iterator();
            while (i.hasNext()) {
                SPFYamlTestDescriptor o = i.next();
                Iterator<String> ttt = o.getTests().keySet().iterator();
                while (ttt.hasNext()) {
                    addTest(new MailZoneYamlTest(o,ttt.next()));
                }
            }
        }
View Full Code Here

    protected AbstractYamlTest(String name) throws IOException {
        super(name);
        List<SPFYamlTestDescriptor> tests = SPFYamlTestDescriptor.loadTests(getFilename());
        Iterator<SPFYamlTestDescriptor> i = tests.iterator();
        while (i.hasNext() && data == null) {
            SPFYamlTestDescriptor def = i.next();
            if (name.equals(def.getComment()+" #COMPLETE!")) {
                data = def;
                this.test = null;
            } else {
                Iterator<String> j = def.getTests().keySet().iterator();
                while (j.hasNext() && data == null) {
                    String test = j.next();
                    if (name.equals(def.getComment()+ " #"+test)) {
                        data = def;
                        this.test = test;
                    }
                }
            }
View Full Code Here

        Logger l = new Log4JLogger(org.apache.log4j.Logger.getLogger("ROOT"));

        List<SPFYamlTestDescriptor> tests = SPFYamlTestDescriptor.loadTests(YAMLFILE2);
        Iterator<SPFYamlTestDescriptor> i = tests.iterator();
        while (i.hasNext()) {
            SPFYamlTestDescriptor o = (SPFYamlTestDescriptor) i.next();
            Iterator<String> ttt = o.getTests().keySet().iterator();
            while (ttt.hasNext()) {
                RFC4408AsynchronousYamlTest t = new RFC4408AsynchronousYamlTest(o, ttt.next());
                t.setLogger(l);
                TestRunner.run(t);
            }
View Full Code Here

        public RFC4408AsynchronousSuite() throws IOException {
            super();
            List<SPFYamlTestDescriptor> tests = SPFYamlTestDescriptor.loadTests(YAMLFILE2);
            Iterator<SPFYamlTestDescriptor> i = tests.iterator();
            while (i.hasNext()) {
                SPFYamlTestDescriptor o = i.next();
                addTest(new RFC4408AsynchronousYamlTest(o));
            }
        }
View Full Code Here

        Logger l = new Log4JLogger(org.apache.log4j.Logger.getLogger("ROOT"));

        List<SPFYamlTestDescriptor> tests = SPFYamlTestDescriptor.loadTests(YAMLFILE2);
        Iterator<SPFYamlTestDescriptor> i = tests.iterator();
        while (i.hasNext()) {
            SPFYamlTestDescriptor o = (SPFYamlTestDescriptor) i.next();
            Iterator<String> ttt = o.getTests().keySet().iterator();
            while (ttt.hasNext()) {
                RFC4408YamlTest t = new RFC4408YamlTest(o,(String) ttt.next());
                t.setLogger(l);
                TestRunner.run(t);
            }
View Full Code Here

            super();
            try {
                List<SPFYamlTestDescriptor> tests = SPFYamlTestDescriptor.loadTests(YAMLFILE2);
                Iterator<SPFYamlTestDescriptor> i = tests.iterator();
                while (i.hasNext()) {
                    SPFYamlTestDescriptor o = i.next();
                    Iterator<String> ttt = o.getTests().keySet().iterator();
                    while (ttt.hasNext()) {
                        addTest(new RFC4408YamlTest(o, ttt.next()));
                    }
                }
            } catch (RuntimeException e) {
View Full Code Here

        public BasicSuite() throws IOException {
            super();
            List tests = SPFYamlTestDescriptor.loadTests(YAMLFILE2);
            Iterator i = tests.iterator();
            while (i.hasNext()) {
                SPFYamlTestDescriptor o = (SPFYamlTestDescriptor) i.next();
                Iterator ttt = o.getTests().keySet().iterator();
                while (ttt.hasNext()) {
                    addTest(new YamlTest(o,(String) ttt.next()));
                }
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.james.jspf.tester.SPFYamlTestDescriptor

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.