package Reaction;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import java.io.File;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;

public class ReactionParserTest {

    ReactionParser reactionParser;

    @Before
    public void setUp() throws Exception {
        String DESKTOP_PATH = System.getProperty("user.dir");
        String FILE_NAME = DESKTOP_PATH + "\\assets\\react.txt";

        File file = new File(FILE_NAME);
        reactionParser = new ReactionParser(file);
    }

    @After
    public void tearDown() throws Exception {

    }

    @Test
    public void testReadReactant() throws Exception {
        Reaction reaction;
        while ((reaction = reactionParser.readReaction()) != null) {
            if (reactionParser.isEndOfBlock()) {
                break;
            }
        }
        assertNotNull(reaction);
        assertEquals(reaction.getUniqueId(), "[RXN0-6375]");
    }
}
@@ -12,16 +12,42 @@
 ction;%0A%0A
+import Constant.FilePath;%0A
 import o
@@ -363,166 +363,64 @@
     
-String DESKTOP_PATH = System.getProperty(%22user.dir%22);%0A        String FILE_NAME = DESKTOP_PATH + %22%5C%5Cassets%5C%5Creact.txt%22;%0A%0A        File file = new File(FILE_NAME
+File file = new File(FilePath.REACT_FILE_PATH.toString()
 );%0A 

Refactor ReactionParserTest