Skip to content
This repository has been archived by the owner on Oct 12, 2021. It is now read-only.

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Berezovskyi <andriib@kth.se>
  • Loading branch information
berezovskyi committed Feb 15, 2019
1 parent 1c48526 commit f830142
Showing 1 changed file with 13 additions and 7 deletions.
Expand Up @@ -42,8 +42,9 @@
* @since 2.4.0
*/
public class JsonLdTest {
@Test @SuppressWarnings({"unchecked", "rawtypes"}) public void testContentTypeTurtleUTF8()
throws Exception {
@Test
@SuppressWarnings({"unchecked", "rawtypes"})
public void testContentTypeTurtleUTF8() throws Exception {
OslcJsonLdProvider provider = new OslcJsonLdProvider();

InputStream is = ServiceProviderTest.class.getResourceAsStream("/provider.jsonld");
Expand All @@ -55,7 +56,8 @@ public class JsonLdTest {
assertNotNull("Provider was not read", p);
}

@Test public void testWrite() throws Exception {
@Test
public void testWrite() throws Exception {
ServiceProvider sp = new ServiceProvider();
sp.setDescription("Hello world");
OslcJsonLdProvider provider = new OslcJsonLdProvider();
Expand All @@ -72,7 +74,8 @@ public class JsonLdTest {

}

@Test public void testWriteArray() throws Exception {
@Test
public void testWriteArray() throws Exception {
final OslcJsonLdArrayProvider provider = new OslcJsonLdArrayProvider();
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();

Expand All @@ -88,7 +91,8 @@ public class JsonLdTest {
assertTrue("Provider was not read", jsonLD.contains("Hello world"));
}

@Test @Ignore("TypeVariableImpl cannot be cast to java.lang.Class")
@Test
@Ignore("TypeVariableImpl cannot be cast to java.lang.Class")
public void testWriteCollection() throws Exception {
final OslcJsonLdCollectionProvider provider = new OslcJsonLdCollectionProvider();
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
Expand All @@ -105,7 +109,8 @@ public void testWriteCollection() throws Exception {
assertTrue("Provider was not read", jsonLD.contains("Hello world"));
}

@Test public void testUniversalProvider() throws Exception {
@Test
public void testUniversalProvider() throws Exception {
UniversalResourceSingleProvider provider = new UniversalResourceSingleProvider();

InputStream is = ServiceProviderTest.class.getResourceAsStream("/provider.jsonld");
Expand All @@ -117,7 +122,8 @@ public void testWriteCollection() throws Exception {
assertNotNull("Provider was not read", p);
}

@Test public void testWriteUniversalProvider() throws Exception {
@Test
public void testWriteUniversalProvider() throws Exception {
ServiceProvider sp = new ServiceProvider();
sp.setDescription("Hello world");
UniversalResourceSingleProvider provider = new UniversalResourceSingleProvider();
Expand Down

0 comments on commit f830142

Please sign in to comment.