-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Samples: Refactor Sample Test 0.40 #319
Samples: Refactor Sample Test 0.40 #319
Conversation
…refactor-sample-test-400
Codecov Report
@@ Coverage Diff @@
## feature/1535-automated-tests-sample-041 #319 +/- ##
========================================================================
Coverage 67.77% 67.77%
========================================================================
Files 759 759
Lines 16401 16401
Branches 1049 1049
========================================================================
Hits 11116 11116
Misses 4806 4806
Partials 479 479 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
refactoring for reuse and avoiding duplicate code is a good approach
...c/test/java/org/eclipse/dataspaceconnector/extension/sample/test/FileTransferSampleTest.java
Outdated
Show resolved
Hide resolved
...s/java/org/eclipse/dataspaceconnector/extension/sample/test/FileTransferSampleTestUtils.java
Outdated
Show resolved
Hide resolved
...s/java/org/eclipse/dataspaceconnector/extension/sample/test/FileTransferSampleTestUtils.java
Outdated
Show resolved
Hide resolved
...s/java/org/eclipse/dataspaceconnector/extension/sample/test/FileTransferSampleTestUtils.java
Outdated
Show resolved
Hide resolved
...s/java/org/eclipse/dataspaceconnector/extension/sample/test/FileTransferSampleTestUtils.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with suggestions.
What this PR changes/adds
FileTransferSampleTest.java
intoFileTransferSampleTestUtils.java
by creating a test fixture.FileTransferSampleTest.java
has been moved intoFileTransferSampleTestUtils.java
.FileTransferSampleTest.java
instanciates an instance ofFileTransferSampleTestUtils.java
and uses the moved code respectively.Why it does that
This PR contains a refactoring to enable the removal of duplicate code from branch feature/1535/254-automated-test-sample-041 which already contains a working integration test for sample 04.1.
Further notes
Successor of this PR: #317
Linked Issue(s)
Contributes to #254.
Checklist
no-changelog
)