Discussions
Categories
- 196.7K All Categories
- 2.2K Data
- 235 Big Data Appliance
- 1.9K Data Science
- 449.8K Databases
- 221.5K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 549 MySQL Community Space
- 477 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 532 SQLcl
- 4K SQL Developer Data Modeler
- 186.8K SQL & PL/SQL
- 21.3K SQL Developer
- 295.4K Development
- 17 Developer Projects
- 138 Programming Languages
- 292.1K Development Tools
- 104 DevOps
- 3.1K QA/Testing
- 645.9K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 153 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 17 Java Essentials
- 158 Java 8 Questions
- 85.9K Java Programming
- 79 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.2K Java SE
- 13.8K Java Security
- 203 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 394 LiveLabs
- 37 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.6K Other Languages
- 2.3K Chinese
- 170 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 230 Portuguese
ADF Mobile - JUnit - Unit Tests

Hello everybody,
I'm trying use JUnit in my ADF Mobile project. I created a Test Case using JUnit 3.8 that is compatible with JVM included in ADF Mobile but when I execute the test I receive an error message:
java.lang.NoClassDefFoundError: oracle/adfmf/util/Utility
I checked the libraries at the project and the libraries are OK.
Anybody have idea what is the problem?
I followed this link (https://medium.com/adf-mobile/guide-to-unit-test-in-adf-mobile-6cf2e1490547) to configure my Jdeveloper.
Regards,
Renan
Answers
-
Which JUnit extension is used? Is the test run in JDeveloper or on the ADF Mobile emulator or device?
-
I'm use JUnit Extension 11.1.2.4.39.64.36 and I run the test in Jdeveloper.
-
Each JDeveloper extension has a requirement for a JDeveloper version. Is the JDev version within the range for the extension version? What is the jdev version?
11.1.2.4.39.64.36.1 oracle.jdeveloper (min= 11.1.2.4.39.64.36.1 , max= 11.1.2.4.39.64.36.1 ) -
I'm use the Jdeveloper current version (11.1.2.4.39.64.36) for ADF Mobile.
-
"ADF Mobile loggers are declared in the oracle.adfmf.util.Utility class".
Refer
Testing and Debugging ADF Mobile Applications - 11g Release 2 (11.1.2.3.0)
-
Sorry man.
But I know how to configure the loggers in ADF Mobile.
I have problem with JUnit, my JUnit project uses another project that have the classes that could be test. When I run the test created I received the message informing that Utility class is not found. If I comment the part of the code I received another message informing that another class is not found, maybe JDeveloper 11.1.2.4.0 has a bug when I configured dependencies or bug in JUnit when use it on the ADF Mobile Classes.
If necessary I can to send the project for you and you can check.
Regards,
Renan
-
JUnit project uses another project that have the classes that could be test.
Does the other project have the logger classes in the classpath? Or is a dependency defined between the projects? If the directory structure is available post the directory structure and the dependencies, not the complete project.
-
Yes, the logger classes are in the classpath the another project.
https://www.dropbox.com/s/n0dam3vfwruw2ky/HR.zip
Renan
-
Guys,
Any idea about this problem?
Regards,
Renan
-