-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SCANMAVEN-233 check that
sonar.java.jdkHome
has default value even …
…without configuration from user (#249)
- Loading branch information
1 parent
993000d
commit 69c0e1a
Showing
4 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>com.sonarsource.it.samples</groupId> | ||
<artifactId>extract-jre</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
<name>Sonar :: Integration Tests :: Extract Jre</name> | ||
|
||
</project> |
12 changes: 12 additions & 0 deletions
12
its/projects/jdkHome/defaultValue/src/main/java/sample/Sample.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package sample; | ||
|
||
public class Sample { | ||
|
||
public Sample(int i) { | ||
int j = i++; | ||
} | ||
|
||
public String myMethod() { | ||
return "hello"; | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
its/projects/jdkHome/defaultValue/src/test/java/sample/SampleTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package sample; | ||
|
||
import org.junit.Test; | ||
|
||
public class SampleTest { | ||
|
||
@Test | ||
public void test() { | ||
new Sample(1).myMethod(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters