-/*\r
- * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.\r
- *\r
- * This program and the accompanying materials are made available under the\r
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
- * and is available at http://www.eclipse.org/legal/epl-v10.html\r
- */\r
-\r
-package org.opendaylight.groupbasedpolicy.renderer.iovisor.sf;\r
-\r
-import static org.junit.Assert.assertEquals;\r
-import static org.junit.Assert.assertFalse;\r
-import static org.junit.Assert.assertTrue;\r
-\r
-import java.util.ArrayList;\r
-import java.util.List;\r
-\r
-import org.junit.Before;\r
-import org.junit.Test;\r
-\r
-public class ClassificationResultTest {\r
-\r
- private static final String ERROR_MESSAGE = "error message";\r
- private ClassificationResult resultOk;\r
- private ClassificationResult resultError;\r
-\r
- @Before\r
- public void init() {\r
- List<String> list = new ArrayList<>();\r
- list.add("string");\r
- resultOk = new ClassificationResult(list);\r
- resultError = new ClassificationResult(ERROR_MESSAGE);\r
- }\r
-\r
- @Test\r
- public void testConstructor_Result() {\r
- assertTrue(resultOk.isSuccessfull());\r
- }\r
-\r
- @Test\r
- public void testConstructor_ErrorMsg() {\r
- assertFalse(resultError.isSuccessfull());\r
- }\r
-\r
- @Test\r
- public void testGetErrorMessage() {\r
- assertEquals(resultOk.getErrorMessage(), ClassificationResult.DEFAULT_ERROR_MESSAGE);\r
- assertEquals(resultError.getErrorMessage(), ERROR_MESSAGE);\r
- }\r
-\r
-}\r
+/*
+ * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+
+package org.opendaylight.groupbasedpolicy.renderer.iovisor.sf;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.junit.Before;
+import org.junit.Test;
+
+public class ClassificationResultTest {
+
+ private static final String ERROR_MESSAGE = "error message";
+ private ClassificationResult resultOk;
+ private ClassificationResult resultError;
+
+ @Before
+ public void init() {
+ List<String> list = new ArrayList<>();
+ list.add("string");
+ resultOk = new ClassificationResult(list);
+ resultError = new ClassificationResult(ERROR_MESSAGE);
+ }
+
+ @Test
+ public void testConstructor_Result() {
+ assertTrue(resultOk.isSuccessfull());
+ }
+
+ @Test
+ public void testConstructor_ErrorMsg() {
+ assertFalse(resultError.isSuccessfull());
+ }
+
+ @Test
+ public void testGetErrorMessage() {
+ assertEquals(resultOk.getErrorMessage(), ClassificationResult.DEFAULT_ERROR_MESSAGE);
+ assertEquals(resultError.getErrorMessage(), ERROR_MESSAGE);
+ }
+
+}