Skip to content

Commit

Permalink
Add stub unit test classes
Browse files Browse the repository at this point in the history
- Also move SpringContextIT to integration directory

Resolves: https://www.pivotaltracker.com/story/show/71010904
  • Loading branch information
Andrew Woods committed May 9, 2014
1 parent ab353e5 commit 90f23ba
Show file tree
Hide file tree
Showing 6 changed files with 305 additions and 0 deletions.
@@ -0,0 +1,61 @@
/**
* Copyright 2014 DuraSpace, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.fcrepo.auth.xacml;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
* @author Andrew Woods
* Date: 5/9/14
*/
public class FedoraPolicyFinderModuleTest {
@Before
public void setUp() throws Exception {

}

@After
public void tearDown() throws Exception {

}

@Test
public void testIsRequestSupported() throws Exception {

}

@Test
public void testIsIdReferenceSupported() throws Exception {

}

@Test
public void testFindPolicy() throws Exception {

}

@Test
public void testFindPolicy1() throws Exception {

}

@Test
public void testInit() throws Exception {

}
}
@@ -0,0 +1,56 @@
/**
* Copyright 2014 DuraSpace, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.fcrepo.auth.xacml;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
* @author Andrew Woods
* Date: 5/9/14
*/
public class FedoraResourceFinderModuleTest {
@Before
public void setUp() throws Exception {

}

@After
public void tearDown() throws Exception {

}

@Test
public void testIsChildSupported() throws Exception {

}

@Test
public void testIsDescendantSupported() throws Exception {

}

@Test
public void testFindChildResources() throws Exception {

}

@Test
public void testFindDescendantResources() throws Exception {

}
}
@@ -0,0 +1,66 @@
/**
* Copyright 2014 DuraSpace, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.fcrepo.auth.xacml;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
* @author Andrew Woods
* Date: 5/9/14
*/
public class SparqlResourceAttributeFinderModuleTest {
@Before
public void setUp() throws Exception {

}

@After
public void tearDown() throws Exception {

}

@Test
public void testIsDesignatorSupported() throws Exception {

}

@Test
public void testIsSelectorSupported() throws Exception {

}

@Test
public void testGetSupportedDesignatorTypes() throws Exception {

}

@Test
public void testGetSupportedIds() throws Exception {

}

@Test
public void testFindAttribute() throws Exception {

}

@Test
public void testFindAttribute1() throws Exception {

}
}
@@ -0,0 +1,66 @@
/**
* Copyright 2014 DuraSpace, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.fcrepo.auth.xacml;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
* @author Andrew Woods
* Date: 5/9/14
*/
public class TripleAttributeFinderModuleTest {
@Before
public void setUp() throws Exception {

}

@After
public void tearDown() throws Exception {

}

@Test
public void testIsDesignatorSupported() throws Exception {

}

@Test
public void testIsSelectorSupported() throws Exception {

}

@Test
public void testGetSupportedDesignatorTypes() throws Exception {

}

@Test
public void testGetSupportedIds() throws Exception {

}

@Test
public void testFindAttribute() throws Exception {

}

@Test
public void testFindAttribute1() throws Exception {

}
}
@@ -0,0 +1,56 @@
/**
* Copyright 2014 DuraSpace, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.fcrepo.auth.xacml;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
* @author Andrew Woods
* Date: 5/9/14
*/
public class XACMLAuthorizationDelegateTest {
@Before
public void setUp() throws Exception {

}

@After
public void tearDown() throws Exception {

}

@Test
public void testInit() throws Exception {

}

@Test
public void testSetApplicationContext() throws Exception {

}

@Test
public void testHasPermission() throws Exception {

}

@Test
public void testResolveUserRoles() throws Exception {

}
}

0 comments on commit 90f23ba

Please sign in to comment.