30 lines
850 B
Java
30 lines
850 B
Java
/**
|
|
*
|
|
*/
|
|
package org.gcube.resourcemanagement.manager.io.codeexceptions;
|
|
|
|
import static org.junit.Assert.*;
|
|
|
|
import org.gcube.resourcemanagement.manager.io.codeexceptions.LocalCodeException;
|
|
import org.gcube.resourcemanagement.manager.io.rs.RMCreateContextCode;
|
|
import org.junit.Test;
|
|
|
|
/**
|
|
* Don't forget to comment!
|
|
*
|
|
* @author Manuele Simi (ISTI CNR)
|
|
*
|
|
*/
|
|
public class LocalCodeExceptionTest {
|
|
|
|
/**
|
|
* Test method for {@link org.gcube.resourcemanagement.manager.io.codeexceptions.LocalCodeException#CodeException(org.gcube.resourcemanagement.manager.io.codeexceptions.ErrorCode)}.
|
|
*/
|
|
@Test
|
|
public void testCodeException() {
|
|
LocalCodeException exception = new LocalCodeException(RMCreateContextCode.GENERIC_ERROR_FROM_RR);
|
|
assertTrue("Unexpected id", exception.getId() == RMCreateContextCode.GENERIC_ERROR_FROM_RR.getId());
|
|
}
|
|
|
|
}
|