<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 de.charite.compbio.exomiser.priority;

import org.junit.Test;
import static org.junit.Assert.*;

/**
 *
 * @author <NAME> <<EMAIL>>
 */
public class PriorityTypeTest {
    
    public PriorityTypeTest() {
    }


    /**
     * Test of valueOf method, of class PriorityType.
     */
    @Test
    public void testValueOf() {
        String name = "PHENODIGM_MGI_PRIORITY";
        PriorityType expResult = PriorityType.PHENODIGM_MGI_PRIORITY;
        PriorityType result = PriorityType.valueOf(name);
        assertEquals(expResult, result);
    }

    /**
     * Test of getCommandLineValue method, of class PriorityType.
     */
    @Test
    public void testGetCommandLineValue() {
        PriorityType instance = PriorityType.BOQA_PRIORITY;
        String expResult = "boqa";
        String result = instance.getCommandLineValue();
        assertEquals(expResult, result);
    }

    /**
     * Test of valueOfCommandLine method, of class PriorityType.
     */
    @Test
    public void testValueOfCommandLine() {
        String value = "inheritance-mode";
        PriorityType expResult = PriorityType.INHERITANCE_MODE_PRIORITY;
        PriorityType result = PriorityType.valueOfCommandLine(value);
        assertEquals(expResult, result);
    }

    /**
     * Test of valueOfCommandLine method, of class PriorityType.
     */
    @Test
    public void testValueOfCommandLineUnrecognisedDefault() {
        String value = "wibble";
        PriorityType expResult = PriorityType.PHENODIGM_MGI_PRIORITY;
        PriorityType result = PriorityType.valueOfCommandLine(value);
        assertEquals(expResult, result);
    }

}<commit_msg>Added PriorityType.NOT_SET. Test for new default PriorityType.NOT_SET.<commit_after>/*
 * 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 de.charite.compbio.exomiser.priority;

import org.junit.Test;
import static org.junit.Assert.*;

/**
 *
 * @author <NAME> <<EMAIL>>
 */
public class PriorityTypeTest {
    
    public PriorityTypeTest() {
    }


    /**
     * Test of valueOf method, of class PriorityType.
     */
    @Test
    public void testValueOf() {
        String name = "PHENODIGM_MGI_PRIORITY";
        PriorityType expResult = PriorityType.PHENODIGM_MGI_PRIORITY;
        PriorityType result = PriorityType.valueOf(name);
        assertEquals(expResult, result);
    }

    /**
     * Test of getCommandLineValue method, of class PriorityType.
     */
    @Test
    public void testGetCommandLineValue() {
        PriorityType instance = PriorityType.BOQA_PRIORITY;
        String expResult = "boqa";
        String result = instance.getCommandLineValue();
        assertEquals(expResult, result);
    }

    /**
     * Test of valueOfCommandLine method, of class PriorityType.
     */
    @Test
    public void testValueOfCommandLine() {
        String value = "inheritance-mode";
        PriorityType expResult = PriorityType.INHERITANCE_MODE_PRIORITY;
        PriorityType result = PriorityType.valueOfCommandLine(value);
        assertEquals(expResult, result);
    }

    /**
     * Test of valueOfCommandLine method, of class PriorityType.
     */
    @Test
    public void testValueOfCommandLineUnrecognisedDefault() {
        String value = "wibble";
        PriorityType expResult = PriorityType.NOT_SET;
        PriorityType result = PriorityType.valueOfCommandLine(value);
        assertEquals(expResult, result);
    }

}
{'fraction_non_alphanumeric': 0.0893525949705725, 'fraction_numerical': 0.0, 'mean_word_length': 2.9233997901364113, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2408263', 'n_tokens_mistral': 1083, 'n_tokens_neox': 1027, 'n_words': 266}