INNER CODE UNIT · Java

tearDown

bwaldvogel/mongo-java-server · test-common/src/main/java/de/bwaldvogel/AbstractReadOnlyProxyTest.java:51

    public void tearDown() {
        writeClient.close();
        readOnlyClient.close();
        mongoServer.shutdownNow();
        writeableServer.shutdownNow();
    }

    @Test
    void testMaxDocumentSize() throws Exception {
        ServerDescription serverDescription = CollectionUtils.getOnlyElement(readOnlyClient.getClusterDescription().getServerDescriptions());
        assertThat(serverDescription.getMaxDocumentSize()).isEqualTo(16777216);
    }

    @Test
    void testServerStatus() throws Exception {
        readOnlyClient.getDatabase("admin").runCommand(new Document("serverStatus", 1));
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…