<commit_before>/*
 * 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);
    }
    
}
<commit_msg>fix continent and country in prientdb<commit_after>package nl.fontys.sofa.limo.orientdb.serialization;

import nl.fontys.sofa.limo.domain.component.hub.Continent;
import org.junit.After;
import org.junit.AfterClass;
import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

/**
 *
 * @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);
    }

}

{'fraction_non_alphanumeric': 0.09624537281861449, 'fraction_numerical': 0.0, 'mean_word_length': 2.6235632183908044, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4338295', 'n_tokens_mistral': 1042, 'n_tokens_neox': 1020, 'n_words': 240}