| |
|
| org.netbeans.test.java.XRunner org.netbeans.test.java.generating.MethodElem.MethodElem
MethodElem | public class MethodElem extends org.netbeans.test.java.XRunner (Code) | | Java Module General API Test: MethodElement
What it tests:
Creating and handling with MethodElement.
Test is focused on checking of correctness of generated code.
How it works:
New class is created using DataObject.createFromTemplate() and also some MethodElements are created.
These are customized using setters and then added using ClassElement.addMethod() into ClassElement.
These actions cause generating of .java code. This code is compared with supposed one.
Output:
Generated Java code.
Possible reasons of failure:
Methods are not inserted properly
If there are some Interfaces in .diff file.
Methods have/return bad properies
See .diff file to get which ones
Bad indentation
This is probably not a bug of Java Module. (Editor Bug)
In .diff file could be some whitespaces.
Exception occured:
See .log file for StackTrace
author: Jan Becicka |
MethodElem | public MethodElem()(Code) | | |
go | public boolean go(Object o, java.io.PrintWriter log) throws Exception(Code) | | "body" of this TestCase
Parameters: o - SourceElement - target for generating Parameters: log - log is used for logging StackTraces throws: Exception - true if test passedfalse if failed |
setUp | protected void setUp()(Code) | | |
suite | public static NbTest suite()(Code) | | |
Methods inherited from org.netbeans.test.java.XRunner | public void testRun() throws DataObjectNotFoundException(Code)(Java Doc) protected boolean writeResult(DataObject DO)(Code)(Java Doc)
|
|
|
|