taskid 65539 Testing for non source modules: cleanup - added documentation

This commit is contained in:
Samuel
2019-10-15 18:46:08 +02:00
parent 661d9c41c9
commit aa3100583f
5 changed files with 14 additions and 6 deletions

View File

@@ -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 {
}

View File

@@ -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 {
}

View File

@@ -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

View File

@@ -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 {

View File

@@ -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