001/* 002 * The contents of this file are subject to the license and copyright 003 * detailed in the LICENSE and NOTICE files at the root of the source 004 * tree. 005 */ 006package org.fcrepo.integration.rdf; 007 008import org.junit.Ignore; 009import org.junit.Test; 010 011/** 012 * @author cabeer 013 */ 014@Ignore // TODO FIX THESE TESTS 015public class WebAccessControlIT extends AbstractIntegrationRdfIT { 016 @Test 017 public void testExample() { 018 final String pid = getRandomUniqueId(); 019 final String card = createObject(pid + "-card").getFirstHeader("Location").getValue(); 020 final String s = "@prefix acl: <http://www.w3.org/ns/auth/acl#> . \n" + 021 "@prefix foaf: <http://xmlns.com/foaf/0.1/> . \n" + 022 "\n" + 023 "<> acl:accessTo <" + card + ">; \n" + 024 " acl:mode acl:Read, acl:Write; \n" + 025 " acl:agent <" + card + "#me> ."; 026 027 createLDPRSAndCheckResponse(getRandomUniqueId(), s); 028 } 029}