summaryrefslogtreecommitdiffstats
path: root/ajdoc/testsrc/org/aspectj/tools/ajdoc/EnumTest.java
blob: 65ef3b3c92287a194c9e4c93775da9ee56e74f9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/********************************************************************
 * Copyright (c) 2005 Contributors. All rights reserved. 
 * This program and the accompanying materials are made available 
 * under the terms of the Eclipse Public License v1.0 
 * which accompanies this distribution and is available at 
 * http://eclipse.org/legal/epl-v10.html 
 *  
 * Contributors: IBM Corporation - initial API and implementation 
 * 				 Helen Hawkins   - iniital version
 *******************************************************************/
package org.aspectj.tools.ajdoc;

import java.io.File;


public class EnumTest extends AjdocTestCase {
	
	/**
	 * Test for pr122728 - no StringOutOfBoundsException
	 * when processing an Enum
	 */
    public void testEnum() throws Exception {
    	initialiseProject("pr122728");
		File[] files = {new File(getAbsoluteProjectDir() + "/src/pack/MyEnum.java")};
		runAjdoc("private","1.5",files);
    }

	/**
	 * Test for pr122728 - no StringOutOfBoundsException
	 * when processing an Enum 
	 */
    public void testInlinedEnum() throws Exception {
    	initialiseProject("pr122728");
		File[] files = {new File(getAbsoluteProjectDir() + "/src/pack/ClassWithInnerEnum.java")};
		runAjdoc("private","1.5",files);
    }
    
	/**
	 * Test for pr122728 - no StringOutOfBoundsException
	 * when processing an Enum
	 */
    public void testEnumWithMethods() throws Exception {
    	initialiseProject("pr122728");
		File[] files = {new File(getAbsoluteProjectDir() + "/src/pack/EnumWithMethods.java")};
		runAjdoc("private","1.5",files);
    }
}