Skip to main content

Java classes included in build

3 replies [Last post]
di97bpe
Offline
Joined: 2009-04-23
Points: 0

Hi
I am writing a new Testsuite for an internal API and unfortunately the Java classes gets built in to the testmidlet.

As our phones does not accept this it throws an Authorization exception.
Is there any way to verify the code but not include the classes in the build

This is possible for "normal" Netbeans project

//Björn

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kromanovs
Offline
Joined: 2007-11-14
Points: 0

Hi Björn,

Please clarify what do you mean by "Java classes gets built into test midlet"?
TestMidlet in JDTF is composed from
- classes of your test, its required classes and resources
- classes from extra libraries (optional), if you explicitly identified them (see reply from Marc)
- and classes of the Agent that runs your test on the device and communicates with the server.

What kind of extra classes do you see in your test bundle?

regards,
/Kostya

ivan_veselovsky
Offline
Joined: 2007-12-06
Points: 0

Hi Björn,
in the original post you said "... this is possible in "normal" NetBeans projects".
Can you please explain in more detail what do you mean?
--ivan

mhuebner
Offline
Joined: 2009-07-02
Points: 0

Hi Björn,

I'm not sure if I have understood your problem completely, but I'll give it a try, maybe I can help ;)

So you have created your own API and want to build a testcase against it, or do you want to write tests against existing JSRs? In any case, you might have read my post about references ( http://forums.java.net/jive/thread.jspa?threadID=63855 ), where Ivan explained how to reference jar libraries for compilation. That way, no class files should be included into the build.

However, if you are testing your own API, I don't see how not having those class files in your package would help, because you need to reference your code somehow?

Greetings,
Marc