forked from OpenLiberty/liberty-tools-intellij
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request OpenLiberty#1081 from mrglavas/1080#test-imposter-…
…classes Create java.lang and java.math imposter classes for use in testing qualified names.
- Loading branch information
Showing
12 changed files
with
450 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
src/test/resources/projects/maven/jakarta-sample/src/main/java/ng/Boolean.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,26 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024 IBM Corporation. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v. 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*******************************************************************************/ | ||
|
||
package ng; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* This class can be used in testing to impersonate java.lang.Boolean in order to | ||
* verify that qualified class names are processed correctly. It is not intended to | ||
* be complete or functional. | ||
*/ | ||
public class Boolean implements Serializable, Comparable<Boolean> { | ||
|
||
@Override | ||
public int compareTo(Boolean o) { | ||
return 0; | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
src/test/resources/projects/maven/jakarta-sample/src/main/java/ng/Byte.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,44 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024 IBM Corporation. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v. 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*******************************************************************************/ | ||
|
||
package ng; | ||
|
||
/** | ||
* This class can be used in testing to impersonate java.lang.Byte in order to | ||
* verify that qualified class names are processed correctly. It is not intended to | ||
* be complete or functional. | ||
*/ | ||
public class Byte extends Number implements Comparable<Byte> { | ||
|
||
@Override | ||
public int compareTo(Byte o) { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public int intValue() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public long longValue() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public float floatValue() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public double doubleValue() { | ||
return 0; | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
src/test/resources/projects/maven/jakarta-sample/src/main/java/ng/CharSequence.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,20 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024 IBM Corporation. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v. 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*******************************************************************************/ | ||
|
||
package ng; | ||
|
||
/** | ||
* This class can be used in testing to impersonate java.lang.CharSequence in order to | ||
* verify that qualified class names are processed correctly. It is not intended to | ||
* be complete or functional. | ||
*/ | ||
public interface CharSequence { | ||
|
||
} |
26 changes: 26 additions & 0 deletions
26
src/test/resources/projects/maven/jakarta-sample/src/main/java/ng/Character.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,26 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024 IBM Corporation. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v. 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*******************************************************************************/ | ||
|
||
package ng; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* This class can be used in testing to impersonate java.lang.Character in order to | ||
* verify that qualified class names are processed correctly. It is not intended to | ||
* be complete or functional. | ||
*/ | ||
public class Character implements Serializable, Comparable<Character> { | ||
|
||
@Override | ||
public int compareTo(Character o) { | ||
return 0; | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
src/test/resources/projects/maven/jakarta-sample/src/main/java/ng/Double.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,44 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024 IBM Corporation. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v. 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*******************************************************************************/ | ||
|
||
package ng; | ||
|
||
/** | ||
* This class can be used in testing to impersonate java.lang.Double in order to | ||
* verify that qualified class names are processed correctly. It is not intended to | ||
* be complete or functional. | ||
*/ | ||
public class Double extends Number implements Comparable<Double> { | ||
|
||
@Override | ||
public int compareTo(Double o) { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public int intValue() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public long longValue() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public float floatValue() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public double doubleValue() { | ||
return 0; | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
src/test/resources/projects/maven/jakarta-sample/src/main/java/ng/Float.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,44 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024 IBM Corporation. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v. 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*******************************************************************************/ | ||
|
||
package ng; | ||
|
||
/** | ||
* This class can be used in testing to impersonate java.lang.Float in order to | ||
* verify that qualified class names are processed correctly. It is not intended to | ||
* be complete or functional. | ||
*/ | ||
public class Float extends Number implements Comparable<Float> { | ||
|
||
@Override | ||
public int compareTo(Float o) { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public int intValue() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public long longValue() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public float floatValue() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public double doubleValue() { | ||
return 0; | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
src/test/resources/projects/maven/jakarta-sample/src/main/java/ng/Integer.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,44 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024 IBM Corporation. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v. 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*******************************************************************************/ | ||
|
||
package ng; | ||
|
||
/** | ||
* This class can be used in testing to impersonate java.lang.Integer in order to | ||
* verify that qualified class names are processed correctly. It is not intended to | ||
* be complete or functional. | ||
*/ | ||
public class Integer extends Number implements Comparable<Integer> { | ||
|
||
@Override | ||
public int compareTo(Integer o) { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public int intValue() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public long longValue() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public float floatValue() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public double doubleValue() { | ||
return 0; | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
src/test/resources/projects/maven/jakarta-sample/src/main/java/ng/Long.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,44 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024 IBM Corporation. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v. 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*******************************************************************************/ | ||
|
||
package ng; | ||
|
||
/** | ||
* This class can be used in testing to impersonate java.lang.Long in order to | ||
* verify that qualified class names are processed correctly. It is not intended to | ||
* be complete or functional. | ||
*/ | ||
public class Long extends Number implements Comparable<Long> { | ||
|
||
@Override | ||
public int compareTo(Long o) { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public int intValue() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public long longValue() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public float floatValue() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public double doubleValue() { | ||
return 0; | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
src/test/resources/projects/maven/jakarta-sample/src/main/java/ng/Short.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,44 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024 IBM Corporation. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v. 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*******************************************************************************/ | ||
|
||
package ng; | ||
|
||
/** | ||
* This class can be used in testing to impersonate java.lang.Short in order to | ||
* verify that qualified class names are processed correctly. It is not intended to | ||
* be complete or functional. | ||
*/ | ||
public class Short extends Number implements Comparable<Short> { | ||
|
||
@Override | ||
public int compareTo(Short o) { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public int intValue() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public long longValue() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public float floatValue() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public double doubleValue() { | ||
return 0; | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
src/test/resources/projects/maven/jakarta-sample/src/main/java/ng/String.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,26 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024 IBM Corporation. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v. 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*******************************************************************************/ | ||
|
||
package ng; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* This class can be used in testing to impersonate java.lang.String in order to | ||
* verify that qualified class names are processed correctly. It is not intended to | ||
* be complete or functional. | ||
*/ | ||
public class String implements Serializable, Comparable<String>, CharSequence { | ||
|
||
@Override | ||
public int compareTo(String o) { | ||
return 0; | ||
} | ||
} |
Oops, something went wrong.