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.

EnumTest.java 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /********************************************************************
  2. * Copyright (c) 2005 Contributors. All rights reserved.
  3. * This program and the accompanying materials are made available
  4. * under the terms of the Eclipse Public License v1.0
  5. * which accompanies this distribution and is available at
  6. * http://eclipse.org/legal/epl-v10.html
  7. *
  8. * Contributors: IBM Corporation - initial API and implementation
  9. * Helen Hawkins - iniital version
  10. *******************************************************************/
  11. package org.aspectj.tools.ajdoc;
  12. import java.io.File;
  13. public class EnumTest extends AjdocTestCase {
  14. /**
  15. * Test for pr122728 - no StringOutOfBoundsException
  16. * when processing an Enum
  17. */
  18. public void testEnum() throws Exception {
  19. initialiseProject("pr122728");
  20. File[] files = {new File(getAbsoluteProjectDir() + "/src/pack/MyEnum.java")};
  21. runAjdoc("private","1.5",files);
  22. }
  23. /**
  24. * Test for pr122728 - no StringOutOfBoundsException
  25. * when processing an Enum
  26. */
  27. public void testInlinedEnum() throws Exception {
  28. initialiseProject("pr122728");
  29. File[] files = {new File(getAbsoluteProjectDir() + "/src/pack/ClassWithInnerEnum.java")};
  30. runAjdoc("private","1.5",files);
  31. }
  32. /**
  33. * Test for pr122728 - no StringOutOfBoundsException
  34. * when processing an Enum
  35. */
  36. public void testEnumWithMethods() throws Exception {
  37. initialiseProject("pr122728");
  38. File[] files = {new File(getAbsoluteProjectDir() + "/src/pack/EnumWithMethods.java")};
  39. runAjdoc("private","1.5",files);
  40. }
  41. }