Search in sources :

Example 1 with Version

use of org.apache.jena.atlas.lib.Version in project jena by apache.

the class TestVersion method test_version_print_01.

@Test
public void test_version_print_01() {
    Version ver = new Version();
    ver.addClass(ARQ.class);
    IndentedLineBuffer buffer = new IndentedLineBuffer();
    ver.print(buffer);
    String info = buffer.asString();
    Assert.assertNotNull(info);
    Assert.assertTrue(info.contains("ARQ"));
}
Also used : Version(org.apache.jena.atlas.lib.Version) IndentedLineBuffer(org.apache.jena.atlas.io.IndentedLineBuffer) Test(org.junit.Test)

Example 2 with Version

use of org.apache.jena.atlas.lib.Version in project jena by apache.

the class TestVersion method test_version_string_01.

@Test
public void test_version_string_01() {
    Version ver = new Version();
    ver.addClass(ARQ.class);
    ver.addClass(RIOT.class);
    String info = ver.toString();
    Assert.assertNotNull(info);
    Assert.assertTrue(info.contains("ARQ"));
    Assert.assertTrue(info.contains("\n"));
}
Also used : Version(org.apache.jena.atlas.lib.Version) Test(org.junit.Test)

Example 3 with Version

use of org.apache.jena.atlas.lib.Version in project jena by apache.

the class TestVersion method test_version_string_02.

@Test
public void test_version_string_02() {
    Version ver = new Version();
    ver.addClass(ARQ.class);
    ver.addClass(RIOT.class);
    String info = ver.toString(false);
    Assert.assertNotNull(info);
    Assert.assertTrue(info.contains("ARQ"));
    Assert.assertTrue(info.contains("\n"));
}
Also used : Version(org.apache.jena.atlas.lib.Version) Test(org.junit.Test)

Example 4 with Version

use of org.apache.jena.atlas.lib.Version in project jena by apache.

the class TestVersion method test_version_string_03.

@Test
public void test_version_string_03() {
    Version ver = new Version();
    ver.addClass(ARQ.class);
    String info = ver.toString(true);
    Assert.assertNotNull(info);
    Assert.assertTrue(info.contains("ARQ"));
    Assert.assertFalse(info.contains("\n"));
}
Also used : Version(org.apache.jena.atlas.lib.Version) Test(org.junit.Test)

Aggregations

Version (org.apache.jena.atlas.lib.Version)4 Test (org.junit.Test)4 IndentedLineBuffer (org.apache.jena.atlas.io.IndentedLineBuffer)1