Comments (7)
Hi,
"Temurin" is Eclipse's JDK; it seems to be compatible with OpenJDK except for URLClassLoader
. Are you running the tests under Windows? Perhaps there is an incompatibility there (rather than with Temurin).
from jpf-core.
I used jpf-core under windows with Intellij Idea. I got the result mentioned above.I tried to execute gradle build
in cmd. I got the same error.
And I can't use the jpf-core.
Can you give some advises?
from jpf-core.
This is likely because Windows' shell does not use standard "/" as directory separator, but a backslash instead. This can probably be addressed in JPF's model and native peer classes. As we don't have access to Windows, we cannot fix this, but we are happy to accept a patch that handles this issue.
from jpf-core.
All right. Although there is still the error mentioned above, I can executed the java -jar RunJPF.jar HelloWorld.jpf
.
And I got the result:
However, I alter the "HelloWorld.java"
from :
public class HelloWorld {
public static void main(String[] args){
System.out.println("I won't say it!");
}
}
to :
public class HelloWorld {
public void save(){
System.out.println("save function!");
}
}
I got the result shown below.
Is there must a main function in the tested .class? If not, what should I do?
from jpf-core.
Yes, JPF expects a regular Java application with a static main
method as an entry point. If your code has no main
method, you have to write one.
from jpf-core.
There are many class don't have "main function" in the jar of a project. Or, it can be said that a project usually has only one "main function". Can jpf test this jar? Can jpf test these classes? Can jpf used to a whole web project? Such as ,testing some interfaces.
from jpf-core.
JPF essentially performs a system test by default, but it can also be used to run unit tests. The latter mode is used to test JPF itself. Please see the wiki for more information.
To test the contents of a JAR file, you usually want to mix system tests (calling main
with different parameters) and unit tests, as far as there is non-determinism in the form of thread scheduling or input choices.
from jpf-core.
Related Issues (20)
- Migration to Java 11 HOT 2
- Coverage configuration HOT 2
- Unit test case performance HOT 10
- Orphan NativePeer method with Java 11.0.20.1 HOT 10
- Gradle build under Gradle 8 has inconsistent configuration HOT 5
- Classpath issue while using JPF(Java Path Finder) HOT 2
- NoClassDefFoundError: sun/misc/SharedSecrets HOT 1
- Build Error occurring when I have the correct version of Java installed? HOT 7
- JPF fails with java.lang.IllegalArgumentException: Null charset name HOT 3
- The wrapper.jar checksum is not consistent with the gradle version. HOT 3
- Cannot build jpf-core due to compileAnnotationsJava FAILED HOT 6
- Class not found: com.google.common.util.concurrent.ThreadFactoryBuilder HOT 1
- Java Path Finder Latest Version not available HOT 1
- Addressing Deprecated API Usage: public static SecurityManager getSecurityManager() {....} has been deprecated since Java 17 HOT 47
- Test case failure at Java-8 branch HOT 6
- `String.equals(Object)` makes JPF on Java 11 crash HOT 9
- Java 17 support: CI configuration, identification of key issues HOT 29
- java.lang.NoSuchMethodError: java.lang.String.getBytes([BIIBI) HOT 13
- cannot find native jdk.internal.misc.CDS.isDumpingClassList0 HOT 43
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jpf-core.