Code example for Set

Methods: size

0
        //multiple paths, which can be both directories or yaml test suites (with optional file extension) 
        yamlSuites = FileUtils.findYamlSuites("/rest-api-spec/test", "indices.optimize/10_basic", "index");
        assertThat(yamlSuites, notNullValue());
        assertThat(yamlSuites.size(), equalTo(2));
        assertThat(yamlSuites.containsKey("indices.optimize"), equalTo(true));
        assertThat(yamlSuites.get("indices.optimize").size(), equalTo(1));
        assertSingleFile(yamlSuites.get("indices.optimize"), "indices.optimize", "10_basic.yaml");
        assertThat(yamlSuites.containsKey("index"), equalTo(true));
        assertThat(yamlSuites.get("index").size(), greaterThan(1));
 
        //files can be loaded from classpath and from file system too 
        File dir = newTempDir();
        File file = new File(dir, "test_loading.yaml");
        assertThat(file.createNewFile(), equalTo(true));
 
        //load from directory outside of the classpath 
        yamlSuites = FileUtils.findYamlSuites("/rest-api-spec/test", "get/10_basic", dir.getAbsolutePath());
        assertThat(yamlSuites, notNullValue());
        assertThat(yamlSuites.size(), equalTo(2));
        assertThat(yamlSuites.containsKey("get"), equalTo(true));
Connect your IDE to all the code out there  Get Codota for Java