/* * 2 covered goals: * 1 net.sf.xisemele.impl.OperationsHelperImpl.sublistWithName(Ljava/util/List;Ljava/lang/String;)Ljava/util/List;: I14 Branch 12 IFEQ L82 - true * 2 net.sf.xisemele.impl.OperationsHelperImpl.children(Lorg/w3c/dom/Node;)Ljava/util/List;: I19 Branch 1 IF_ICMPGE L28 - true */ @Test public void test4() throws Throwable { OperationsHelperImpl operationsHelperImpl0 = new OperationsHelperImpl(); IIOMetadataNode iIOMetadataNode0 = new IIOMetadataNode(); List<Node> list0 = operationsHelperImpl0.children((Node) iIOMetadataNode0); List<Node> list1 = operationsHelperImpl0.sublistWithName(list0, "2Y.i~6gwa"); assertEquals(true, list1.isEmpty()); }
/* * 3 covered goals: * 1 net.sf.xisemele.impl.OperationsHelperImpl.nodeWithName(Ljava/util/List;Ljava/lang/String;)Lorg/w3c/dom/Node;: I8 Branch 10 IFEQ L69 - true * 2 net.sf.xisemele.impl.OperationsHelperImpl.<init>()V: root-Branch * 3 net.sf.xisemele.impl.OperationsHelperImpl.children(Lorg/w3c/dom/Node;)Ljava/util/List;: I19 Branch 1 IF_ICMPGE L28 - true */ @Test public void test0() throws Throwable { OperationsHelperImpl operationsHelperImpl0 = new OperationsHelperImpl(); IIOMetadataNode iIOMetadataNode0 = new IIOMetadataNode(); List<Node> list0 = operationsHelperImpl0.children((Node) iIOMetadataNode0); Node node0 = operationsHelperImpl0.nodeWithName(list0, "2Y.i~6gwa"); assertNull(node0); }
/* * 1 covered goal: * 1 net.sf.xisemele.impl.OperationsHelperImpl.find(Lorg/w3c/dom/Document;Ljava/lang/String;)Lorg/w3c/dom/Node;: I14 Branch 3 IFLE L44 - false */ @Test public void test3() throws Throwable { OperationsHelperImpl operationsHelperImpl0 = new OperationsHelperImpl(); // Undeclared exception! try { operationsHelperImpl0.find((Document) null, "`"); fail("Expecting exception: NullPointerException"); } catch (NullPointerException e) { } }
/* * 2 covered goals: * 1 net.sf.xisemele.impl.OperationsHelperImpl.children(Lorg/w3c/dom/Node;)Ljava/util/List;: I19 Branch 1 IF_ICMPGE L28 - false * 2 net.sf.xisemele.impl.OperationsHelperImpl.children(Lorg/w3c/dom/Node;)Ljava/util/List;: I31 Branch 2 IF_ICMPNE L30 - false */ @Test public void test1() throws Throwable { OperationsHelperImpl operationsHelperImpl0 = new OperationsHelperImpl(); IIOMetadataNode iIOMetadataNode0 = new IIOMetadataNode((String) null); IIOMetadataNode iIOMetadataNode1 = (IIOMetadataNode) iIOMetadataNode0.appendChild((Node) iIOMetadataNode0); List<Node> list0 = operationsHelperImpl0.children((Node) iIOMetadataNode1); assertNotNull(list0); assertEquals(false, list0.isEmpty()); }
/* * 2 covered goals: * 1 net.sf.xisemele.impl.OperationsHelperImpl.sublistWithName(Ljava/util/List;Ljava/lang/String;)Ljava/util/List;: I14 Branch 12 IFEQ L82 - false * 2 net.sf.xisemele.impl.OperationsHelperImpl.<init>()V: root-Branch */ @Test public void test5() throws Throwable { OperationsHelperImpl operationsHelperImpl0 = new OperationsHelperImpl(); LinkedList<Node> linkedList0 = new LinkedList<Node>(); IIOMetadataNode iIOMetadataNode0 = new IIOMetadataNode((String) null); linkedList0.add((Node) iIOMetadataNode0); // Undeclared exception! try { operationsHelperImpl0.sublistWithName((List<Node>) linkedList0, (String) null); fail("Expecting exception: IllegalArgumentException"); } catch (IllegalArgumentException e) { /* * StringEquals is not supposed to work on a null caller */ } }
/* * 2 covered goals: * 1 net.sf.xisemele.impl.OperationsHelperImpl.find(Lorg/w3c/dom/Document;Ljava/lang/String;)Lorg/w3c/dom/Node;: I14 Branch 3 IFLE L44 - true * 2 net.sf.xisemele.impl.OperationsHelperImpl.find(Lorg/w3c/dom/Document;Ljava/lang/String;)Lorg/w3c/dom/Node;: I87 Branch 8 IFNULL L58 - true */ @Test public void test2() throws Throwable { OperationsHelperImpl operationsHelperImpl0 = new OperationsHelperImpl(); Node node0 = operationsHelperImpl0.find((Document) null, "/"); assertNull(node0); }