package uk.ac.ebi.quickgo.geneproduct.common.common;

import uk.ac.ebi.quickgo.geneproduct.common.ProteomeMembership;

import org.junit.Test;

import static org.hamcrest.Matchers.is;
import static org.springframework.test.util.MatcherAssertionErrors.assertThat;
import static uk.ac.ebi.quickgo.geneproduct.common.ProteomeMembership.COMPLETE;
import static uk.ac.ebi.quickgo.geneproduct.common.ProteomeMembership.NONE;
import static uk.ac.ebi.quickgo.geneproduct.common.ProteomeMembership.NOT_APPLICABLE;
import static uk.ac.ebi.quickgo.geneproduct.common.ProteomeMembership.REFERENCE;

/**
 * @author Tony Wardell
 * Date: 15/03/2018
 * Time: 13:16
 * Created with IntelliJ IDEA.
 */
public class ProteomeMembershipTest {

    @Test
    public void checkMembershipCreationRules() {
        assertThat(ProteomeMembership.membership(false, true, true), is(NOT_APPLICABLE.getValue()));
        assertThat(ProteomeMembership.membership(false, false, true), is(NOT_APPLICABLE.getValue()));
        assertThat(ProteomeMembership.membership(false, true, false), is(NOT_APPLICABLE.getValue()));
        assertThat(ProteomeMembership.membership(true, true, true), is(REFERENCE.getValue()));
        assertThat(ProteomeMembership.membership(true, true, false), is(REFERENCE.getValue()));
        assertThat(ProteomeMembership.membership(true, false, true), is(COMPLETE.getValue()));
        assertThat(ProteomeMembership.membership(true, false, false), is(NONE.getValue()));
    }

}

@@ -858,32 +858,32 @@
 _APPLICABLE.
-getValue
+toString
 ()));%0A      
@@ -960,32 +960,32 @@
 _APPLICABLE.
-getValue
+toString
 ()));%0A      
@@ -1066,24 +1066,24 @@
 LICABLE.
-getValue
+toString
 ()));%0A  
@@ -1157,32 +1157,32 @@
 s(REFERENCE.
-getValue
+toString
 ()));%0A      
@@ -1257,24 +1257,24 @@
 FERENCE.
-getValue
+toString
 ()));%0A  
@@ -1352,24 +1352,24 @@
 OMPLETE.
-getValue
+toString
 ()));%0A  
@@ -1448,16 +1448,16 @@
 ONE.
-getValue
+toString
 ()))

Rename getValue() to toString()