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

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