1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- /*
- * GlobalCommandParserTest.java
- * JUnit 4.x based test
- *
- * Created on 16 June 2007, 22:50
- */
-
- package com.dmdirc.commandparser;
-
- import com.dmdirc.Config;
- import com.dmdirc.config.IdentityManager;
- import org.junit.AfterClass;
- import org.junit.Before;
- import org.junit.BeforeClass;
- import org.junit.Test;
- import static org.junit.Assert.*;
-
- /**
- *
- * @author chris
- */
- public class GlobalCommandParserTest {
-
- public GlobalCommandParserTest() {
- }
-
- @BeforeClass
- public static void setUpClass() throws Exception {
- IdentityManager.load();
- Config.init();
- }
-
- @AfterClass
- public static void tearDownClass() throws Exception {
- }
-
- @Before
- public void setUp() throws Exception {
- }
-
- @Test
- public void getGlobalCommandParser() {
- final GlobalCommandParser p1 = GlobalCommandParser.getGlobalCommandParser();
-
- final GlobalCommandParser p2 = GlobalCommandParser.getGlobalCommandParser();
-
- assertSame(p1, p2);
- }
-
- }
|