Skip to content

Commit

Permalink
Added tests for FORGE-1224
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi authored and mbenson committed Oct 2, 2013
1 parent c5e0126 commit 5cb634c
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* Copyright 2012 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Eclipse Public License version 1.0, available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.jboss.forge.test.parser.java;

import java.io.IOException;
import java.net.URL;

import org.jboss.forge.parser.JavaParser;
import org.jboss.forge.parser.java.JavaClass;
import org.jboss.forge.parser.java.Method;
import org.jboss.forge.test.parser.java.common.VisibilityTest;

/**
* @author <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a>
*/
public class MethodPublicVisibilityTest extends VisibilityTest
{
@Override
@SuppressWarnings({ "rawtypes" })
public void resetTests() throws IOException
{
URL url = MethodPublicVisibilityTest.class
.getResource("/org/jboss/forge/grammar/java/MockAnnotatedMethod.java");
Method method = JavaParser.parse(JavaClass.class, url).getMethods().get(1);
setTarget(method);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@ public class MockAnnotatedMethod
public MockAnnotatedMethod()
{
}

public void testme()
{
}
}

0 comments on commit 5cb634c

Please sign in to comment.