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 - J2MEUNIT - missing package in test class
Summary: J2MEUNIT - missing package in test class
Status: VERIFIED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 6.x
Hardware: All Linux
: P2 blocker (vote)
Assignee: Jiri Prazak
URL:
Keywords:
Depends on:
Blocks: 77184
  Show dependency tree
 
Reported: 2006-06-07 13:32 UTC by Lukas Hasik
Modified: 2007-05-31 13:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
myPackage/MidletTest.java (2.18 KB, application/octet-stream)
2006-06-07 13:33 UTC, Lukas Hasik
Details
myPackage/Midlet.java (372 bytes, text/plain)
2006-06-07 13:33 UTC, Lukas Hasik
Details

Note You need to log in before you can comment on or make changes to this bug.
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