use of edu.stanford.bmir.protege.web.shared.revision.RevisionNumber in project webprotege by protegeproject.
the class FileDownloadParametersTestCase method shouldParseNoRevisionIntoHeadRevision.
@Test
public void shouldParseNoRevisionIntoHeadRevision() {
RevisionNumber revisionNumber = parameters.getRequestedRevision();
assertThat(revisionNumber.isHead(), is(true));
}
use of edu.stanford.bmir.protege.web.shared.revision.RevisionNumber in project webprotege by protegeproject.
the class FileDownloadParametersTestCase method shouldParseRevision.
@Test
public void shouldParseRevision() {
when(servletRequest.getParameter(ProjectDownloadConstants.REVISION)).thenReturn("3");
RevisionNumber revisionNumber = parameters.getRequestedRevision();
assertThat(revisionNumber.getValue(), is(equalTo(3l)));
}
Aggregations