Package com.sun.enterprise.tools.verifier

Examples of com.sun.enterprise.tools.verifier.TestInformation


                list = doc.getElementsByTagName("test");
                for (int i=0;i<list.getLength();i++) {
                    Element e = (Element) list.item(i);
                    NodeList nl = e.getChildNodes();
                    TestInformation ti = new TestInformation();
                    String testName = "";
                    for (int j=0;j<nl.getLength();j++) {
                        String nodeName = nl.item(j).getNodeName();
                        if("test-name".equals(nodeName.trim())) {
                            Node el = (Node)nl.item(j);
                            testName = el.getFirstChild().getNodeValue().trim();
                        }
                        if ("test-class".equals(nodeName.trim())) {
                            Node el = (Node) nl.item(j);
                            ti.setClassName(el.getFirstChild().getNodeValue().trim());
                        }
                        if ("minimum-version".equals(nodeName.trim())) {
                            Node el = (Node) nl.item(j);
                            ti.setMinimumVersion(el.getFirstChild().getNodeValue().trim());
                        }                                       
                        if ("maximum-version".equals(nodeName.trim())) {
                            Node el = (Node) nl.item(j);
                            ti.setMaximumVersion(el.getFirstChild().getNodeValue().trim());
                        }  
                    }
                    testCases.put(testName,ti);
                }           
            } catch (ParserConfigurationException e) {
View Full Code Here


        if(name == null && beanName == null)
                return true;
        boolean retValue = false;
        if(testCases.isEmpty())
            loadTestInfo();
        TestInformation ti = (TestInformation)testCases.get(name);
        if(ti == null && beanName != null)
                    ti =(TestInformation)testCases.get(beanName);
        String testClass;
        try {
            testClass = ti.getClassName();
        }
        catch(Exception e){
               return true;
        }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.tools.verifier.TestInformation

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.