* limitations under the License.
* ============LICENSE_END=========================================================
*/
+
package org.onap.aai.serialization.queryformats;
+import static org.junit.Assert.*;
+
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.onap.aai.AAISetup;
import org.onap.aai.exceptions.AAIException;
-import static org.junit.Assert.*;
-
public class FormatTest extends AAISetup {
- @Rule
- public ExpectedException expectedEx = ExpectedException.none();
+ @Rule
+ public ExpectedException expectedEx = ExpectedException.none();
- @Test
- public void validFormatTest() throws AAIException {
- assertEquals(Format.count, Format.getFormat("count"));
- }
+ @Test
+ public void validFormatTest() throws AAIException {
+ assertEquals(Format.count, Format.getFormat("count"));
+ }
- @Test
- public void invalidFormatTest() throws AAIException {
- String format = "test";
- expectedEx.expect(AAIException.class);
- expectedEx.expectMessage("Unsupported format query parameter " + format + " in request.");
- Format.getFormat(format);
- }
+ @Test
+ public void invalidFormatTest() throws AAIException {
+ String format = "test";
+ expectedEx.expect(AAIException.class);
+ expectedEx.expectMessage("Unsupported format query parameter " + format + " in request.");
+ Format.getFormat(format);
+ }
-}
\ No newline at end of file
+}