mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-09 11:03:12 +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;
|
package org.dspace.example;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO: Add Description
|
* This interface serves as an example of how & where to add local customizations to the DSpace REST API.
|
||||||
*
|
|
||||||
* @author mdiggory @ atmire.com
|
|
||||||
*/
|
*/
|
||||||
public interface Example {
|
public interface Example {
|
||||||
}
|
}
|
||||||
|
@@ -10,9 +10,7 @@ package org.dspace.example.impl;
|
|||||||
import org.dspace.example.Example;
|
import org.dspace.example.Example;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO: Add Description
|
* This class serves as an example of how & where to add local customizations to the DSpace REST API.
|
||||||
*
|
|
||||||
* @author mdiggory @ atmire.com
|
|
||||||
*/
|
*/
|
||||||
public class ExampleImpl implements Example {
|
public class ExampleImpl implements Example {
|
||||||
}
|
}
|
||||||
|
@@ -14,6 +14,10 @@ import org.dspace.example.impl.ExampleImpl;
|
|||||||
import org.dspace.utils.DSpace;
|
import org.dspace.utils.DSpace;
|
||||||
import org.junit.Test;
|
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 {
|
public class ExampleIT extends AbstractIntegrationTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@@ -10,6 +10,10 @@ package org.dspace.app.rest.example;
|
|||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
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
|
@RestController
|
||||||
@RequestMapping("example")
|
@RequestMapping("example")
|
||||||
public class ExampleController {
|
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.dspace.app.rest.test.AbstractControllerIntegrationTest;
|
||||||
import org.junit.Test;
|
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 {
|
public class ExampleControllerIT extends AbstractControllerIntegrationTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Reference in New Issue
Block a user