#12 the generated testmethod is strange

code-gen
closed-rejected
5
2002-11-21
2002-07-31
Kaspar Lund
No

The generated test method is strange

The method :

public void start(String user, String role, String
levelOfOperation, String windowsConfiguration) {
}

The generated Testmethod:
/**
* Method for testing how works original method:
* void start( ... )
* from tested class
*/
public void
testStart1195259493119525949311952594931195259493
() {

assertTrue("Warning! This new test method with no
real test code inside.", false);

}

Discussion

  • Artur Hefczyc

    Artur Hefczyc - 2002-11-21
    • status: open --> closed-rejected
     
  • Artur Hefczyc

    Artur Hefczyc - 2002-11-21

    Logged In: YES
    user_id=234194

    It is not a bug. Its by design. Numbers are added intentionaly.
    They comes from HashCodes collected from all parameters
    class names. It is necessary for distinguish methods with
    the same names and different set of parameters (overloaded
    methods)

     

Log in to post a comment.