mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 10:04:21 +00:00
taskid 65539 Testing for non source modules: cleanup - added documentation
This commit is contained in:
@@ -8,9 +8,7 @@
|
||||
package org.dspace.example;
|
||||
|
||||
/**
|
||||
* TODO: Add Description
|
||||
*
|
||||
* @author mdiggory @ atmire.com
|
||||
* This interface serves as an example of how & where to add local customizations to the DSpace REST API.
|
||||
*/
|
||||
public interface Example {
|
||||
}
|
||||
|
@@ -10,9 +10,7 @@ package org.dspace.example.impl;
|
||||
import org.dspace.example.Example;
|
||||
|
||||
/**
|
||||
* TODO: Add Description
|
||||
*
|
||||
* @author mdiggory @ atmire.com
|
||||
* This class serves as an example of how & where to add local customizations to the DSpace REST API.
|
||||
*/
|
||||
public class ExampleImpl implements Example {
|
||||
}
|
||||
|
@@ -14,6 +14,10 @@ import org.dspace.example.impl.ExampleImpl;
|
||||
import org.dspace.utils.DSpace;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* This IT serves as an an example of how & where to add integration tests for local customizations to the DSpace API.
|
||||
* See {@link Example} and {@link ExampleImpl} for the class of which the functionality is tested.
|
||||
*/
|
||||
public class ExampleIT extends AbstractIntegrationTest {
|
||||
|
||||
@Test
|
||||
|
@@ -10,6 +10,10 @@ package org.dspace.app.rest.example;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* This Controller serves as an example of how & where to add local customizations to the DSpace REST API.
|
||||
* See {@link ExampleControllerIT} for the integration tests for this controller.
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("example")
|
||||
public class ExampleController {
|
||||
|
@@ -14,6 +14,10 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
|
||||
import org.dspace.app.rest.test.AbstractControllerIntegrationTest;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* This IT serves as an example of how & where to add integration tests for local customizations to the DSpace REST API.
|
||||
* See {@link ExampleController} for the Controller of which the functionality is tested.
|
||||
*/
|
||||
public class ExampleControllerIT extends AbstractControllerIntegrationTest {
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user