src/test/java/edu/ucla/library/iiif/auth/services/DatabaseServiceIT.java
@Test
    final void testGetAccessLevelSetTwice(final VertxTestContext aContext) {
        final String id = "setTwice";
        final int expected = 2;
        final Future<Void> setTwice =
                myServiceProxy.setAccessLevel(id, 1).compose(put -> myServiceProxy.setAccessLevel(id, expected));

        setTwice.compose(put -> myServiceProxy.getAccessLevel(id)).onSuccess(result -> {
            completeIfExpectedElseFail(result, expected, aContext);
        }).onFailure(aContext::failNow);
    }
/**
     * Tests reading an item whose "access level" that has been set more than once.
     *
     * @param aContext A test context
     */
Tests reading an item whose "access level" that has been set more than once.
@param aContext A test context
Tests reading an item whose " access level " that has been set more than once . @param aContext A test context
@Test
    final void testGetAccessLevelSetTwice(final VertxTestContext aContext) {
        final String id = "setTwice";
        final int expected = 2;
        final Future<Void> setTwice =
                myServiceProxy.setAccessLevel(id, 1).compose(put -> myServiceProxy.setAccessLevel(id, expected));
        setTwice.compose(put -> myServiceProxy.getAccessLevel(id)).onSuccess(result -> {
            completeIfExpectedElseFail(result, expected, aContext);
        }).onFailure(aContext::failNow);
    }
@ Test final void testGetAccessLevelSetTwice ( final VertxTestContext aContext ) { final String id = "setTwice" ; final int expected = 2 ; final Future < Void > setTwice = myServiceProxy . setAccessLevel ( id , 1 ) . compose ( put -> myServiceProxy . setAccessLevel ( id , expected ) ) ; setTwice . compose ( put -> myServiceProxy . getAccessLevel ( id ) ) . onSuccess ( result -> { completeIfExpectedElseFail ( result , expected , aContext ) ; } ) . onFailure ( aContext :: failNow ) ; }
Tests reading an item whose "access level" that has been set more than once.
Tests reading an item whose " access level " that has been set more than once .