forked from folio-org/mod-ncip
-
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 #18 from indexdata/PR-1709-dev
PR-1786 Add integration test
- Loading branch information
Showing
10 changed files
with
520 additions
and
250 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
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 @@ | ||
package org.folio.ncip; | ||
|
||
import io.restassured.response.Response; | ||
import org.junit.Test; | ||
|
||
import java.net.MalformedURLException; | ||
|
||
import static org.junit.Assert.assertEquals; | ||
import static org.junit.Assert.assertTrue; | ||
|
||
public class CancelRequestItemTest extends TestBase { | ||
|
||
private static final String REQUEST_ID = "5fc504cb-9042-4bfe-a54f-287c56cd7a11"; | ||
@Test | ||
public void callCancelRequestItem() throws MalformedURLException { | ||
Response response = postData("src/test/resources/mockdata/ncip-cancelRequestItem.xml"); | ||
String body = response.getBody().prettyPrint(); | ||
System.out.println(body); | ||
assertEquals(200, response.getStatusCode()); | ||
assertTrue(body.contains(REQUEST_ID)); | ||
} | ||
} |
Oops, something went wrong.