Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Testing J2ME apps without using emulators

 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone know if it is possible to test j2me applications without running up an emulator ?
The reason that I ask is that I'd like to use a testing framework for my j2me classes and JUnit seems the obvious choice. I don't want to have to run up an emulator to run tests because this contrasts with the "run unit tests often" ethos mandated in Extreme Programming and even if I could, JUnit uses reflection which is not supported in j2me.
If I run a JUnit test against a "j2me" class using the standard JVM, obviously things go a little haywire when calling native methods for e.g. persistant storage or networking.
Any ideas ?
 
Author & Gold Digger
Posts: 7617
6
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure that it is at all possible. I do know that you can come up with your own emulator, so that may be the way to go. Check out the Basic Customization Guide for more information on how to develop your own emulator.
[ February 26, 2002: Message edited by: Valentin Crettaz ]
 
He does not suffer fools gladly. But this tiny ad does:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic