package utils;

public class SystemStateTest {
/*
    Rank listProposedRanking;
    Rank listInterestingPattern;
    Rank listNeutralPattern;
    Rank listTrashedPattern;
    Rank listUserRanking;

    //Rank proposedRanking;
    //Rank interestingPattern;
    //Rank neutralPattern;
    //Rank trashedPattern;
    //Rank userRanking;

    String p1;
    String p2;
    String p3;
    String p4;
    String p5;
    String p6;
    String p7;
    String p8;
    String p9;
    String p10;

    SystemState systemState;

    @Before
    public void initData(){
        listProposedRanking = new Rank();
        listUserRanking = new Rank();
        listInterestingPattern = new Rank();
        listNeutralPattern = new Rank();
        listTrashedPattern = new Rank();

        //
        p1 = new String("pattern1");
        p2 = new String("pattern2");
        p3 = new String("pattern3");
        p4 = new String("pattern4");
        p5 = new String("pattern5");
        p6 = new String("pattern6");
        p7 = new String("pattern7");
        p8 = new String("pattern8");
        p9 = new String("pattern9");
        p10 = new String("pattern10");

        //Create proposedRanking
        listProposedRanking.add(p1);
        listProposedRanking.add(p2);
        listProposedRanking.add(p3);
        listProposedRanking.add(p4);
        listProposedRanking.add(p5);
        listProposedRanking.add(p6);
        listProposedRanking.add(p7);
        listProposedRanking.add(p8);
        listProposedRanking.add(p9);
        listProposedRanking.add(p10);
        //proposedRanking = new Rank(listProposedRanking);

        //Create InterestingPattern Rank
        listInterestingPattern.add(p2);
        listInterestingPattern.add(p5);
        listInterestingPattern.add(p6);
        listInterestingPattern.add(p9);

        //Create NeutralPattern Rank
        listNeutralPattern.add(p1);
        listNeutralPattern.add(p7);
        listNeutralPattern.add(p10);

        //Create TrashedPattern Rank
        listTrashedPattern.add(p3);
        listTrashedPattern.add(p4);
        listTrashedPattern.add(p8);

        //Create UserRanking
        listUserRanking.add(p2);
        listUserRanking.add(p5);
        listUserRanking.add(p6);
        listUserRanking.add(p9);
        listUserRanking.add(p1);
        listUserRanking.add(p7);
        listUserRanking.add(p10);
        //userRanking = new Rank(listUserRanking);

        //Create the systemState
        systemState = new SystemState(listProposedRanking);
    }

    @Test
    public void getUserRankingTest() {
        systemState.update(listInterestingPattern,listNeutralPattern,listTrashedPattern);
        System.out.println(listUserRanking);
        System.out.println(systemState.getUserRanking());
        //System.out.println(userRanking);

        assertEquals(listUserRanking,systemState.getUserRanking());

    }

    @Test
    public void setInterestingPatternsTest() {
        systemState.setInterestingPatterns(listInterestingPattern);
        assertEquals(listInterestingPattern,systemState.getInterestingPatterns());

    }

    @Test
    public void setNeutralPatternsTest() {
        systemState.setNeutralPatterns(listNeutralPattern);
        assertEquals(listNeutralPattern,systemState.getNeutralPatterns());
    }

    @Test
    public void setTrashedPatternsTest() {
        systemState.setTrashedPatterns(listTrashedPattern);
        assertEquals(listTrashedPattern,systemState.getTrashedPatterns());
    }

    @Test
    public void updateTest() {
        systemState.update(listInterestingPattern,listNeutralPattern,listTrashedPattern);

    }
*/
}