Rename test package to exceptions.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161905 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
05f3c6a810
commit
2c84b66dbe
|
@ -1,10 +0,0 @@
|
|||
/**
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* Tests for {@link org.gcube.resourcemanagement.manager.exception.CodeException}s.
|
||||
*
|
||||
* @author Manuele Simi (ISTI CNR)
|
||||
*
|
||||
*/
|
||||
package org.gcube.resourcemanagement.manager.exception;
|
|
@ -1,16 +1,15 @@
|
|||
/**
|
||||
*
|
||||
*/
|
||||
package org.gcube.resourcemanagement.manager.exception;
|
||||
package org.gcube.resourcemanagement.manager.io.exceptions;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
import org.gcube.resourcemanagement.manager.io.exceptions.CodeException;
|
||||
import org.gcube.resourcemanagement.manager.io.exceptions.RMCode;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.junit.runners.BlockJUnit4ClassRunner;
|
||||
|
||||
/**
|
||||
* Tests for {@link CodeException}
|
||||
* Tests for {@link CodeException}s
|
||||
*
|
||||
* @author Manuele Simi (ISTI CNR)
|
||||
*
|
||||
|
@ -19,13 +18,14 @@ import org.junit.runners.BlockJUnit4ClassRunner;
|
|||
public class CodeExceptionTest {
|
||||
|
||||
/**
|
||||
* Test method for {@link org.gcube.resourcemanagement.manager.exception.CodeException#CodeException(org.gcube.resourcemanagement.manager.exception.RMCode)}.
|
||||
* Test method for {@link org.gcube.resourcemanagement.manager.io.exceptions.CodeException#CodeException(org.gcube.resourcemanagement.manager.io.exceptions.RMCode)}.
|
||||
*/
|
||||
@Test
|
||||
public void testCodeException() {
|
||||
CodeException exception = new CodeException(RMCode.CONTEXT_ALREADY_EXIST);
|
||||
assertTrue("Unexpected id", exception.getErrorCode() == RMCode.CONTEXT_ALREADY_EXIST.getId());
|
||||
assertTrue("Unexpected message", exception.getMessage().equals(RMCode.CONTEXT_ALREADY_EXIST.getMessage()));
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
/**
|
||||
* Exception handling in the Resource Management.
|
||||
* @author Manuele Simi (ISTI - CNR)
|
||||
*
|
||||
*/
|
||||
package org.gcube.resourcemanagement.manager.io.exceptions;:
|
Loading…
Reference in New Issue