Skip to content
This repository was archived by the owner on Jan 23, 2024. It is now read-only.

Commit f68d370

Browse files
committed
Removed usage of "NON-RDF" group, closes #166
1 parent b7d6e44 commit f68d370

File tree

5 files changed

+8
-21
lines changed

5 files changed

+8
-21
lines changed

src/main/java/org/w3/ldp/testsuite/LdpTestSuite.java

-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,6 @@ private void setupSuite(OptionsHandler options) {
240240

241241
if (options.hasOption("non-rdf")) {
242242
classList.add(new XmlClass("org.w3.ldp.testsuite.test.NonRDFSourceTest"));
243-
testsuite.addIncludedGroup(LdpTest.NR);
244243
}
245244

246245
if (options.hasOption("httpLogging")) {

src/main/java/org/w3/ldp/testsuite/test/CommonResourceTest.java

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import org.testng.annotations.Optional;
2525
import org.testng.annotations.Parameters;
2626
import org.testng.annotations.Test;
27-
import org.testng.internal.Utils;
2827
import org.w3.ldp.testsuite.LdpTestSuite;
2928
import org.w3.ldp.testsuite.annotations.SpecTest;
3029
import org.w3.ldp.testsuite.annotations.SpecTest.METHOD;

src/main/java/org/w3/ldp/testsuite/test/LdpTest.java

-8
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,6 @@ public void tearDown() {
156156
*/
157157
public static final String MANUAL = "MANUAL";
158158

159-
/**
160-
* A Linked Data Platform Non-RDF Source (LDP-NR). An LDPR whose state
161-
* is not represented in RDF. These are binary or text documents that do not
162-
* have useful RDF representations.
163-
*
164-
* @see <a href="http://www.w3.org/TR/ldp/#terms">LDP Terminology</a>
165-
*/
166-
public static final String NR = "NON-RDF";
167159

168160
private static boolean warnings = false;
169161

src/main/java/org/w3/ldp/testsuite/test/NonRDFSourceTest.java

+8-8
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ protected String getResourceUri() {
110110
}
111111

112112
@Test(
113-
groups = {MAY, NR},
113+
groups = {MAY},
114114
description = "LDP servers may accept an HTTP POST of non-RDF " +
115115
"representations (LDP-NRs) for creation of any kind of " +
116116
"resource, for example binary resources.")
@@ -133,7 +133,7 @@ public void testPostNonRDFSource() throws IOException {
133133
}
134134

135135
@Test(
136-
groups = {MAY, NR},
136+
groups = {MAY},
137137
description = "LDP servers may accept an HTTP POST of non-RDF " +
138138
"representations (LDP-NRs) for creation of any kind of " +
139139
"resource, for example binary resources.")
@@ -170,7 +170,7 @@ public void testPostResourceAndGetFromContainer() throws IOException {
170170
}
171171

172172
@Test(
173-
groups = {MAY, NR},
173+
groups = {MAY},
174174
description = "LDP servers may host a mixture of LDP-RSs and LDP-NRs. " +
175175
"For example, it is common for LDP servers to need to host binary " +
176176
"or text resources that do not have useful RDF representations.")
@@ -207,7 +207,7 @@ public void testPostResourceGetBinary() throws IOException {
207207
}
208208

209209
@Test(
210-
groups = {MAY, NR},
210+
groups = {MAY},
211211
description = "Each LDP Non-RDF Source must also be a conforming LDP Resource. " +
212212
"LDP Non-RDF Sources may not be able to fully express their state using RDF.")
213213
@SpecTest(
@@ -258,7 +258,7 @@ public void testPostResourceGetMetadataAndBinary() throws IOException {
258258
}
259259

260260
@Test(
261-
groups = {MAY, NR},
261+
groups = {MAY},
262262
description = "LDP servers exposing an LDP Non-RDF Source may advertise this by exposing " +
263263
"a HTTP Link header with a target URI of http://www.w3.org/ns/ldp#NonRDFSource, and " +
264264
"a link relation type of type (that is, rel='type') in responses to requests made to " +
@@ -293,7 +293,7 @@ public void testPostResourceAndCheckLink() throws IOException {
293293
}
294294

295295
@Test(
296-
groups = {MAY, NR},
296+
groups = {MAY},
297297
description = "Upon successful creation of an LDP-NR (HTTP status code of 201-Created and " +
298298
"URI indicated by Location response header), LDP servers may create an associated " +
299299
"LDP-RS to contain data about the newly created LDP-NR. If a LDP server creates " +
@@ -342,7 +342,7 @@ public void testPostResourceAndCheckAssociatedResource() throws IOException {
342342
}
343343

344344
@Test(
345-
groups = {MUST, NR},
345+
groups = {MUST},
346346
description = "When a contained LDPR is deleted, and the LDPC server created an"+
347347
"associated LDP-RS (see the LDPC POST section), the LDPC server must also"+
348348
"delete the associated LDP-RS it created.",
@@ -412,7 +412,7 @@ protected Response postNonRDFSource(String slug, String file, String mimeType) t
412412
}
413413

414414
@Test(
415-
groups = {MUST, NR},
415+
groups = {MUST},
416416
description = "When responding to requests whose request-URI is a LDP-NR with an"+
417417
"associated LDP-RS, a LDPC server must provide the same HTTP Link response"+
418418
"header as is required in the create response",

testng.xml

-3
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@
4747

4848
<run>
4949
<include name="allRequirementLevels"/>
50-
51-
<!-- Include this group if your server supports non-RDF source resources -->
52-
<include name="NON-RDF"/>
5350

5451
<!-- Will just skip the tests but create entries for the reporters -->
5552
<include name="MANUAL"/>

0 commit comments

Comments
 (0)