src/test/java/edu/ucla/library/iiif/auth/services/DatabaseServiceIT.java
@Test
    final void testGetDegradedAllowedUnset(final VertxTestContext aContext) {
        final String url = "https://library.ucla.edu";
        final String expected = NULL;

        myServiceProxy.getDegradedAllowed(url).onSuccess(result -> {
            completeIfExpectedElseFail(result, expected, aContext);
        }).onFailure(details -> {
            final ServiceException error = (ServiceException) details;

            assertEquals(DatabaseServiceError.NOT_FOUND, DatabaseServiceImpl.getError(error));
            assertEquals(url, error.getMessage());

            aContext.completeNow();
        });
    }
/**
     * Tests reading an origin whose "degraded allowed" has not been set.
     *
     * @param aContext A test context
     */
Tests reading an origin whose "degraded allowed" has not been set.
@param aContext A test context
Tests reading an origin whose " degraded allowed " has not been set . @param aContext A test context
@Test
    final void testGetDegradedAllowedUnset(final VertxTestContext aContext) {
        final String url = "https://library.ucla.edu";
        final String expected = NULL;
        myServiceProxy.getDegradedAllowed(url).onSuccess(result -> {
            completeIfExpectedElseFail(result, expected, aContext);
        }).onFailure(details -> {
            final ServiceException error = (ServiceException) details;
            assertEquals(DatabaseServiceError.NOT_FOUND, DatabaseServiceImpl.getError(error));
            assertEquals(url, error.getMessage());
            aContext.completeNow();
        });
    }
@ Test final void testGetDegradedAllowedUnset ( final VertxTestContext aContext ) { final String url = "https://library.ucla.edu" ; final String expected = NULL ; myServiceProxy . getDegradedAllowed ( url ) . onSuccess ( result -> { completeIfExpectedElseFail ( result , expected , aContext ) ; } ) . onFailure ( details -> { final ServiceException error = ( ServiceException ) details ; assertEquals ( DatabaseServiceError . NOT_FOUND , DatabaseServiceImpl . getError ( error ) ) ; assertEquals ( url , error . getMessage ( ) ) ; aContext . completeNow ( ) ; } ) ; }
Tests reading an origin whose "degraded allowed" has not been set.
Tests reading an origin whose " degraded allowed " has not been set .