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.name()));
        assertThat(ProteomeMembership.membership(false, false, true), is(NOT_APPLICABLE.name()));
        assertThat(ProteomeMembership.membership(false, true, false), is(NOT_APPLICABLE.name()));
        assertThat(ProteomeMembership.membership(true, true, true), is(REFERENCE.name()));
        assertThat(ProteomeMembership.membership(true, true, false), is(REFERENCE.name()));
        assertThat(ProteomeMembership.membership(true, false, true), is(COMPLETE.name()));
        assertThat(ProteomeMembership.membership(true, false, false), is(NONE.name()));
    }

}

@@ -854,35 +854,39 @@
 (NOT_APPLICABLE.
-nam
+getValu
 e()));%0A        a
@@ -956,35 +956,39 @@
 (NOT_APPLICABLE.
-nam
+getValu
 e()));%0A        a
@@ -1066,19 +1066,23 @@
 LICABLE.
-nam
+getValu
 e()));%0A 
@@ -1153,35 +1153,39 @@
 ), is(REFERENCE.
-nam
+getValu
 e()));%0A        a
@@ -1257,19 +1257,23 @@
 FERENCE.
-nam
+getValu
 e()));%0A 
@@ -1352,19 +1352,23 @@
 OMPLETE.
-nam
+getValu
 e()));%0A 
@@ -1448,11 +1448,15 @@
 ONE.
-nam
+getValu
 e())

Change the name of the method used to get the string representation of the ProteomeMemberhip emum - we are no longer going to rely on the library generated version.