/* * 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()); }
/* * 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 */ } }