/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package nl.fontys.sofa.limo.orientdb.serialization;

import com.sksamuel.gaia.Continent;
import java.io.Serializable;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;

/**
 *
 * @author Ben
 */
public class ContinentSerializerTest {
    
    public ContinentSerializerTest() {
    }
    
    @BeforeClass
    public static void setUpClass() {
    }
    
    @AfterClass
    public static void tearDownClass() {
    }
    
    @Before
    public void setUp() {
    }
    
    @After
    public void tearDown() {
    }

    /**
     * Test of serializeFieldValue method, of class ContinentSerializer.
     */
    @Test
    public void testSerializeFieldValue() {
        System.out.println("serializeFieldValue");
        Class iClass = null;
        ContinentSerializer instance = new ContinentSerializer();
        Object expResult = Continent.Africa.name();
        Object result = instance.serializeFieldValue(iClass, Continent.Africa);
        System.out.println("Result: "+expResult.toString());
        assertEquals(expResult, result.toString());
    }

    /**
     * Test of unserializeFieldValue method, of class ContinentSerializer.
     */
    @Test
    public void testUnserializeFieldValue() {
        System.out.println("unserializeFieldValue");
        Class iClass = null;
        Object iFieldValue = Continent.valueOf("Africa");
        ContinentSerializer instance = new ContinentSerializer();
        Object expResult = Continent.Africa;
        Object result = instance.unserializeFieldValue(iClass, "Africa");
        assertEquals(expResult, result);
    }
    
}

@@ -1,194 +1,4 @@
-/*%0D%0A * To change this license header, choose License Headers in Project Properties.%0D%0A * To change this template file, choose Tools %7C Templates%0D%0A * and open the template in the editor.%0D%0A */%0D%0A
 pack
@@ -59,65 +59,58 @@
 ort 
-com.sksamuel.gaia.Continent;%0D%0Aimport java.io.Serializable
+nl.fontys.sofa.limo.domain.component.hub.Continent
 ;%0D%0Ai
@@ -155,32 +155,78 @@
 it.AfterClass;%0D%0A
+import static org.junit.Assert.assertEquals;%0D%0A
 import org.junit
@@ -293,43 +293,8 @@
 st;%0D
-%0Aimport static org.junit.Assert.*;%0D
 %0A%0D%0A/
@@ -362,20 +362,16 @@
 Test %7B%0D%0A
-    
 %0D%0A    pu
@@ -403,36 +403,32 @@
 est() %7B%0D%0A    %7D%0D%0A
-    
 %0D%0A    @BeforeCla
@@ -469,36 +469,32 @@
 ass() %7B%0D%0A    %7D%0D%0A
-    
 %0D%0A    @AfterClas
@@ -541,28 +541,24 @@
 ) %7B%0D%0A    %7D%0D%0A
-    
 %0D%0A    @Befor
@@ -594,20 +594,16 @@
 %0A    %7D%0D%0A
-    
 %0D%0A    @A
@@ -1119,9 +1119,11 @@
 t: %22
-+
+ + 
 expR
@@ -1736,17 +1736,13 @@
 %0A    %7D%0D%0A
-    
 %0D%0A%7D%0D%0A

fix continent and country in prientdb