You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

GlobalCommandParserTest.java 1023B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * GlobalCommandParserTest.java
  3. * JUnit 4.x based test
  4. *
  5. * Created on 16 June 2007, 22:50
  6. */
  7. package com.dmdirc.commandparser;
  8. import com.dmdirc.Config;
  9. import com.dmdirc.config.IdentityManager;
  10. import org.junit.AfterClass;
  11. import org.junit.Before;
  12. import org.junit.BeforeClass;
  13. import org.junit.Test;
  14. import static org.junit.Assert.*;
  15. /**
  16. *
  17. * @author chris
  18. */
  19. public class GlobalCommandParserTest {
  20. public GlobalCommandParserTest() {
  21. }
  22. @BeforeClass
  23. public static void setUpClass() throws Exception {
  24. IdentityManager.load();
  25. Config.init();
  26. }
  27. @AfterClass
  28. public static void tearDownClass() throws Exception {
  29. }
  30. @Before
  31. public void setUp() throws Exception {
  32. }
  33. @Test
  34. public void getGlobalCommandParser() {
  35. final GlobalCommandParser p1 = GlobalCommandParser.getGlobalCommandParser();
  36. final GlobalCommandParser p2 = GlobalCommandParser.getGlobalCommandParser();
  37. assertSame(p1, p2);
  38. }
  39. }