Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
RAGO - RAG OpenAPI Framework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
JastAdd
RAGO - RAG OpenAPI Framework
Commits
2036dd92
Commit
2036dd92
authored
Mar 15, 2022
by
Jueun Park
Browse files
Options
Downloads
Patches
Plain Diff
edited OpenAPIMain_test.java
parent
5af6b857
No related branches found
No related tags found
1 merge request
!4
Resolve "Show tests in CI"
Pipeline
#13083
passed
Mar 15, 2022
Stage: build
Stage: test
Stage: ragdoc
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test/java/openapi/OpenAPIMain_test.java
+6
-6
6 additions, 6 deletions
src/test/java/openapi/OpenAPIMain_test.java
with
6 additions
and
6 deletions
src/test/java/openapi/OpenAPIMain_test.java
+
6
−
6
View file @
2036dd92
...
...
@@ -32,7 +32,7 @@ public class OpenAPIMain_test {
static
List
<
File
>
resources
=
new
ArrayList
<>();
@BeforeAll
static
void
init
()
throws
Exception
{
static
void
init
()
{
File
r
=
new
File
(
"./src/main/resources"
);
initResources
(
r
);
}
...
...
@@ -40,7 +40,7 @@ public class OpenAPIMain_test {
@MethodSource
(
"getResources"
)
@DisplayName
(
"Parser Test (System Messages)"
)
@ParameterizedTest
(
name
=
"Parser test for resource file ''{0}''"
)
protected
static
void
parserTest
(
File
file
)
throws
Exception
{
static
void
parserTest
(
File
file
)
throws
Exception
{
OpenAPIObject
jastAddObject
;
OpenAPI
POJOOpenAPI
;
ObjectMapper
mapper
=
new
ObjectMapper
();
...
...
@@ -84,11 +84,11 @@ public class OpenAPIMain_test {
compareJson
(
expectedNode
,
actualNode
,
Paths
.
get
(
file
.
getPath
()));
}
protected
static
Stream
<
File
>
getResources
()
{
static
Stream
<
File
>
getResources
()
{
return
resources
.
stream
();
}
protected
static
void
compareJson
(
JsonNode
expectedNode
,
JsonNode
actualNode
,
Path
path
)
throws
IOException
{
static
void
compareJson
(
JsonNode
expectedNode
,
JsonNode
actualNode
,
Path
path
)
throws
IOException
{
JsonNode
diff
=
JsonDiff
.
asJson
(
expectedNode
,
actualNode
);
String
pathNode
;
String
result
=
""
;
...
...
@@ -130,7 +130,7 @@ public class OpenAPIMain_test {
}
}
protected
static
boolean
isNumeric
(
String
str
)
{
static
boolean
isNumeric
(
String
str
)
{
try
{
int
d
=
Integer
.
parseInt
(
str
);
}
catch
(
NumberFormatException
nfe
)
{
...
...
@@ -139,7 +139,7 @@ public class OpenAPIMain_test {
return
true
;
}
protected
static
void
initResources
(
File
file
)
{
static
void
initResources
(
File
file
)
{
if
(
file
.
isDirectory
()
)
{
for
(
File
f
:
file
.
listFiles
()
)
initResources
(
f
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment