-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ROResource Access Control Filter implemented adn tested.
- Loading branch information
filip franek
committed
Dec 31, 2013
1 parent
9353073
commit e28399a
Showing
3 changed files
with
196 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ | |
/rosrs.log | ||
/.checkstyle | ||
*~ | ||
/tokens | ||
/tokens | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
src/test/java/pl/psnc/dl/wf4ever/accesscontrol/filters/AccessControlROsResourceTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package pl.psnc.dl.wf4ever.accesscontrol.filters; | ||
|
||
import java.net.URI; | ||
|
||
import javax.ws.rs.core.MediaType; | ||
|
||
import org.junit.After; | ||
import org.junit.Assert; | ||
import org.junit.Before; | ||
import org.junit.Test; | ||
import org.junit.experimental.categories.Category; | ||
|
||
import pl.psnc.dl.wf4ever.accesscontrol.AccessControlTest; | ||
import pl.psnc.dl.wf4ever.accesscontrol.dicts.Role; | ||
import pl.psnc.dl.wf4ever.accesscontrol.model.Permission; | ||
import pl.psnc.dl.wf4ever.integration.IntegrationTest; | ||
|
||
import com.sun.jersey.api.client.ClientResponse; | ||
|
||
@Category(IntegrationTest.class) | ||
public class AccessControlROsResourceTest extends AccessControlTest { | ||
|
||
@Override | ||
@Before | ||
public void setUp() | ||
throws Exception { | ||
super.setUp(); | ||
} | ||
|
||
|
||
@Override | ||
@After | ||
public void tearDown() | ||
throws Exception { | ||
super.tearDown(); | ||
} | ||
|
||
|
||
@Test | ||
public void testIfOnlyOnwerCanReadAndWriteModes() { | ||
URI createdRO = createRO(accessToken); | ||
} | ||
|
||
} |