Source:
<code>private void testCacheConfig(OutputFormat outputFormat, int nodesCnt, int cachesCnt) throws Exception { <START> assert nodesCnt > 0; <END> assert cachesCnt > 0; Ignite ignite = startGrid(nodesCnt); ignite.cluster().active(true); List<CacheConfiguration> ccfgs = new ArrayList<>(cachesCnt); for (int i = 0; i < cachesCnt; i++) { ccfgs.add( new CacheConfiguration<>() .setAffinity(new RendezvousAffinityFunction(false, 32)) .setBackups(1) .setName(DEFAULT_CACHE_NAME + i) ); } ignite.createCaches(ccfgs); IgniteCache<Object, Object> cache1 = ignite.cache(DEFAULT_CACHE_NAME + 0); for (int i = 0; i < 100; i++) cache1.put(i, i); injectTestSystemOut(); int exitCode; if (outputFormat == null) exitCode = execute("--cache", "list", ".*", "--config"); else exitCode = execute("--cache", "list", ".*", "--config", "--output-format", outputFormat.text()); assertEquals(EXIT_CODE_OK, exitCode); String outStr = testOut.toString(); if (outputFormat == null || outputFormat == SINGLE_LINE) { for (int i = 0; i < cachesCnt; i++) assertTrue(outStr.contains("name=" + DEFAULT_CACHE_NAME + i)); assertTrue(outStr.contains("partitions=32")); assertTrue(outStr.contains("function=o.a.i.cache.affinity.rendezvous.RendezvousAffinityFunction")); } else if (outputFormat == MULTI_LINE) { for (int i = 0; i < cachesCnt; i++) assertTrue(outStr.contains("[cache = '" + DEFAULT_CACHE_NAME + i + "']")); assertTrue(outStr.contains("Affinity Partitions: 32")); assertTrue(outStr.contains("Affinity Function: o.a.i.cache.affinity.rendezvous.RendezvousAffinityFunction")); } }</code><technical_language>Please, change assertTrue</technical_language>

Target:
private void testCacheConfig(OutputFormat outputFormat, int nodesCnt, int cachesCnt) throws Exception { assertTrue("Invalid number of nodes or caches", nodesCnt > 0 && cachesCnt > 0); Ignite ignite = startGrid(nodesCnt); ignite.cluster().active(true); List<CacheConfiguration> ccfgs = new ArrayList<>(cachesCnt); for (int i = 0; i < cachesCnt; i++) { ccfgs.add( new CacheConfiguration<>() .setAffinity(new RendezvousAffinityFunction(false, 32)) .setBackups(1) .setName(DEFAULT_CACHE_NAME + i) ); } ignite.createCaches(ccfgs); IgniteCache<Object, Object> cache1 = ignite.cache(DEFAULT_CACHE_NAME + 0); for (int i = 0; i < 100; i++) cache1.put(i, i); injectTestSystemOut(); int exitCode; if (outputFormat == null) exitCode = execute("--cache", "list", ".*", "--config"); else exitCode = execute("--cache", "list", ".*", "--config", "--output-format", outputFormat.text()); assertEquals(EXIT_CODE_OK, exitCode); String outStr = testOut.toString(); if (outputFormat == null || outputFormat == SINGLE_LINE) { for (int i = 0; i < cachesCnt; i++) assertTrue(outStr.contains("name=" + DEFAULT_CACHE_NAME + i)); assertTrue(outStr.contains("partitions=32")); assertTrue(outStr.contains("function=o.a.i.cache.affinity.rendezvous.RendezvousAffinityFunction")); } else if (outputFormat == MULTI_LINE) { for (int i = 0; i < cachesCnt; i++) assertTrue(outStr.contains("[cache = '" + DEFAULT_CACHE_NAME + i + "']")); assertTrue(outStr.contains("Affinity Partitions: 32")); assertTrue(outStr.contains("Affinity Function: o.a.i.cache.affinity.rendezvous.RendezvousAffinityFunction")); } }