24 package org.lightjason.agentspeak.common;
26 import org.junit.Assert;
27 import org.junit.Test;
30 import java.util.stream.Stream;
45 Assert.assertEquals( Stream.of(
"a",
"b",
"c" ).collect(
CPath.
collect() ).toString(),
"a/b/c" );
54 Assert.assertNotEquals(
66 Assert.assertEquals(
CPath.
from(
"foo/bar" ),
"foo/bar" );
final void comparing()
compare string and path
base test class with helpers
static IPath from( @Nonnull final String p_string)
factor method to build path
class to create a path structure
final void collision()
test hash collision
final void collector()
test stream collector
static Collector< String, IPath, IPath > collect()
returns a collector to build a path from strings