| A unit test for JUnit
A unit test for JUnit A unit test for JUnit A unit test for JUnit
exception: RefactoringException - Description of Exception public voidtest02() throws RefactoringException { TypeSummary type =GetTypeSummary.query("method", "Parent"); MethodSummary method =GetMethodSummary.query(type, "set"); PushDownMethodRefactoring pdm =new PushDownMethodRefactoring(); pdm.setMethod(method); pdm.addChild(GetTypeSummary.query("method","Child")); pdm.run(); Check things out File check = new File("c:\\chris\\test\\check\\ut3\\step4");File dest = new File(root + "\\method");FileCompare.assertEquals("Child is incorrect", new File(check,"Child.java"), new File(dest, "Child.java"));FileCompare.assertEquals("Parent is incorrect", new File(check,"Parent.java"), new File(dest, "Parent.java")); } |