src/test/java/edu/ucla/library/iiif/auth/services/DatabaseServiceIT.java
@Test
    final void testGetDegradedAllowedSetTwice(final VertxTestContext aContext) {
        final String url = "https://iiif.sinaimanuscripts.library.ucla.edu";
        final boolean expected = true;
        final Future<Void> setTwice = myServiceProxy.setDegradedAllowed(url, false)
                .compose(put -> myServiceProxy.setDegradedAllowed(url, expected));

        setTwice.compose(put -> myServiceProxy.getDegradedAllowed(url)).onSuccess(result -> {
            completeIfExpectedElseFail(result, expected, aContext);
        }).onFailure(aContext::failNow);
    }
/**
     * Tests reading an origin whose "degraded allowed" has been set more than once.
     *
     * @param aContext A test context
     */
Tests reading an origin whose "degraded allowed" has been set more than once.
@param aContext A test context
Tests reading an origin whose " degraded allowed " has been set more than once . @param aContext A test context
@Test
    final void testGetDegradedAllowedSetTwice(final VertxTestContext aContext) {
        final String url = "https://iiif.sinaimanuscripts.library.ucla.edu";
        final boolean expected = true;
        final Future<Void> setTwice = myServiceProxy.setDegradedAllowed(url, false)
                .compose(put -> myServiceProxy.setDegradedAllowed(url, expected));
        setTwice.compose(put -> myServiceProxy.getDegradedAllowed(url)).onSuccess(result -> {
            completeIfExpectedElseFail(result, expected, aContext);
        }).onFailure(aContext::failNow);
    }
@ Test final void testGetDegradedAllowedSetTwice ( final VertxTestContext aContext ) { final String url = "https://iiif.sinaimanuscripts.library.ucla.edu" ; final boolean expected = true ; final Future < Void > setTwice = myServiceProxy . setDegradedAllowed ( url , false ) . compose ( put -> myServiceProxy . setDegradedAllowed ( url , expected ) ) ; setTwice . compose ( put -> myServiceProxy . getDegradedAllowed ( url ) ) . onSuccess ( result -> { completeIfExpectedElseFail ( result , expected , aContext ) ; } ) . onFailure ( aContext :: failNow ) ; }
Tests reading an origin whose "degraded allowed" has been set more than once.
Tests reading an origin whose " degraded allowed " has been set more than once .