This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 77521

Summary: J2MEUNIT - missing package in test class
Product: javame Reporter: Lukas Hasik <lhasik>
Component: JUnitAssignee: Jiri Prazak <bohemius>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 77184    
Attachments: myPackage/MidletTest.java
myPackage/Midlet.java

Description Lukas Hasik 2006-06-07 13:32:44 UTC
mp 060605

-test is generated to right location but the package declaration in class is missing

------console output------
inspecting fileobject: Midlet
Adding classes from Midlet to test generation que.
Generating test for: myPackage.Midlet
Parsing features
Done generating test class: MidletTest
--------------------------------------

the Midlet is in package "myPackage"
but the package myPackage line is missing in MidletTest class
Comment 1 Lukas Hasik 2006-06-07 13:33:18 UTC
Created attachment 30854 [details]
myPackage/MidletTest.java
Comment 2 Lukas Hasik 2006-06-07 13:33:47 UTC
Created attachment 30855 [details]
myPackage/Midlet.java
Comment 3 Lukas Hasik 2006-06-07 13:52:01 UTC
this happends only on Linux. On Windows it works correctly.
-package not defined in test class
-missing TestRunnerMIDlet
Comment 4 Jiri Prazak 2006-06-22 14:07:03 UTC
i have verified this issue.  it can also have naughty side effects like package
names not being prepended to test class names when updating J2METestClasses JAD
property, so use caution when filing package name related bugs, it is likely a
duplicate of this issue.

also looks like mdr quirk.
Comment 5 Lukas Hasik 2006-06-23 15:09:24 UTC
moving to mobility component
Comment 6 Jiri Prazak 2006-06-29 14:43:04 UTC
fixed. please verify that it did not break anything in windows.
Comment 7 Lukas Hasik 2006-06-29 17:11:15 UTC
verified on Linux/Windows. Seems to be working...
Comment 8 Lukas Hasik 2006-08-31 14:29:31 UTC
v
Comment 9 Lukas Hasik 2006-09-07 13:42:23 UTC
verified in 060907