Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CoTA
examples
cota-runner-jdk21-junit5
Commits
fdc977df
Commit
fdc977df
authored
1 year ago
by
Lückemeyer
Browse files
Options
Download
Email Patches
Plain Diff
fixed test and compile error package path index
parent
03286354
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/hftstuttgart/dta/Testrunner.java
+2
-2
src/main/java/de/hftstuttgart/dta/Testrunner.java
with
2 additions
and
2 deletions
+2
-2
src/main/java/de/hftstuttgart/dta/Testrunner.java
+
2
-
2
View file @
fdc977df
...
...
@@ -220,7 +220,7 @@ public class Testrunner
//
// result.name = (matcher.matches() && matcher.group(1) != null) ? matcher.group(1) : String.valueOf(e.getSource());
String
sourcePath
=
String
.
valueOf
(
e
.
getSource
());
result
.
packageName
=
sourcePath
.
substring
(
sourcePath
.
lastIndexOf
(
File
.
separator
)
-
1
);
result
.
packageName
=
sourcePath
.
substring
(
1
,
sourcePath
.
lastIndexOf
(
File
.
separator
));
result
.
className
=
sourcePath
.
substring
(
sourcePath
.
lastIndexOf
(
File
.
separator
)+
1
,
sourcePath
.
length
()-
1
);
result
.
name
=
result
.
className
;
result
.
state
=
Result
.
State
.
COMPILATIONERROR
.
ordinal
();
...
...
@@ -257,7 +257,7 @@ public class Testrunner
{
String
testParent
=
s
.
getParentId
().
get
();
int
lastDotIndex
=
testParent
.
lastIndexOf
(
'.'
);
String
testPackage
=
testParent
.
substring
(
testParent
.
lastIndexOf
(
':'
)+
1
,
lastDotIndex
-
1
);
String
testPackage
=
testParent
.
substring
(
testParent
.
lastIndexOf
(
':'
)+
1
,
lastDotIndex
);
String
testClass
=
testParent
.
substring
(
lastDotIndex
+
1
,
testParent
.
length
()-
1
);
Result
result
=
new
Result
();
result
.
packageName
=
testPackage
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets