generated from finos/software-project-blueprint
-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sanitize test class name removing $ (#831)
* change replacement for java identifiers to underscore * sanitize test name from skip token * add function tests * add java keyword test
- Loading branch information
1 parent
326d1cf
commit 4fc4d05
Showing
22 changed files
with
283 additions
and
11 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
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
12 changes: 12 additions & 0 deletions
12
...a/org/finos/legend/sdlc/test/junit/junit4/model/domain/TestFunctionTest__String_0_1_.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 org.finos.legend.sdlc.test.junit.junit4.model.domain; | ||
|
||
import org.finos.legend.sdlc.test.junit.pure.v1.AbstractTestableTest; | ||
|
||
public class TestFunctionTest__String_0_1_ extends AbstractTestableTest | ||
{ | ||
@Override | ||
protected String getEntityPath() | ||
{ | ||
return "model::domain::FunctionTest__String_$0_1$_"; | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...n/src/test/resources/test-entities/entities/model/domain/FunctionTest__String_$0_1$_.json
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,22 @@ | ||
{ | ||
"classifierPath" : "meta::pure::metamodel::function::ConcreteFunctionDefinition", | ||
"content" : { | ||
"_type" : "function", | ||
"body" : [ { | ||
"_type" : "string", | ||
"value" : "" | ||
} ], | ||
"name" : "FunctionTest__String_$0_1$_", | ||
"package" : "model::domain", | ||
"parameters" : [ ], | ||
"postConstraints" : [ ], | ||
"preConstraints" : [ ], | ||
"returnMultiplicity" : { | ||
"lowerBound" : 0, | ||
"upperBound" : 1 | ||
}, | ||
"returnType" : "String", | ||
"stereotypes" : [ ], | ||
"taggedValues" : [ ] | ||
} | ||
} |
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
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
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
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
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
22 changes: 22 additions & 0 deletions
22
...test-generation/src/test/resources/entities/model/domain/FunctionTest__String_$0_1$_.json
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,22 @@ | ||
{ | ||
"classifierPath" : "meta::pure::metamodel::function::ConcreteFunctionDefinition", | ||
"content" : { | ||
"_type" : "function", | ||
"body" : [ { | ||
"_type" : "string", | ||
"value" : "" | ||
} ], | ||
"name" : "FunctionTest__String_$0_1$_", | ||
"package" : "model::domain", | ||
"parameters" : [ ], | ||
"postConstraints" : [ ], | ||
"preConstraints" : [ ], | ||
"returnMultiplicity" : { | ||
"lowerBound" : 0, | ||
"upperBound" : 1 | ||
}, | ||
"returnType" : "String", | ||
"stereotypes" : [ ], | ||
"taggedValues" : [ ] | ||
} | ||
} |
Oops, something went wrong.