/** Tests the SubmitReview Method */ @Test public void testSubmitReview() { int reviewID = 0; try { reviewID = ReviewManager.submitReview(paperID, 26000, new File("tests/paper.txt")); } catch (DatabaseException | IOException e) { fail("Could not"); } assertTrue("Review is there", reviewID > 0); try { ReviewManager.submitReview(paperID, 25000, new File("tests/paper.txt")); } catch (DatabaseException | IOException e) { assertEquals( "The reviewer is the same", e.getLocalizedMessage(), "A user can't review a paper that they authored"); } }