1 /* 2 * Copyright 2015, Google Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: 8 * 9 * * Redistributions of source code must retain the above copyright 10 * notice, this list of conditions and the following disclaimer. 11 * * Redistributions in binary form must reproduce the above 12 * copyright notice, this list of conditions and the following disclaimer 13 * in the documentation and/or other materials provided with the 14 * distribution. 15 * * Neither the name of Google Inc. nor the names of its 16 * contributors may be used to endorse or promote products derived from 17 * this software without specific prior written permission. 18 * 19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 */ 31 32 package org.jf.smalidea; 33 34 public class ParserTest extends LightCodeInsightParsingTestCase { ParserTest()35 public ParserTest() { 36 super("", "smalidea", SmaliLanguage.INSTANCE); 37 } 38 39 @Override getTestDataPath()40 protected String getTestDataPath() { 41 return "testData"; 42 } 43 testEmpty()44 public void testEmpty() throws Exception { doTest(true); } testFieldAnnotations()45 public void testFieldAnnotations() throws Exception { doTest(true); } testInvalidAnnotation()46 public void testInvalidAnnotation() throws Exception { doTest(true); } testInvalidClassDirective()47 public void testInvalidClassDirective() throws Exception { doTest(true); } testInvalidClassDirective2()48 public void testInvalidClassDirective2() throws Exception { doTest(true); } testInvalidClassDirective3()49 public void testInvalidClassDirective3() throws Exception { doTest(true); } testInvalidEnumLiteral()50 public void testInvalidEnumLiteral() throws Exception { doTest(true); } testInvalidField()51 public void testInvalidField() throws Exception { doTest(true); } testInvalidField2()52 public void testInvalidField2() throws Exception { doTest(true); } testInvalidField3()53 public void testInvalidField3() throws Exception { doTest(true); } testInvalidField4()54 public void testInvalidField4() throws Exception { doTest(true); } testInvalidInstruction()55 public void testInvalidInstruction() throws Exception { doTest(true); } testInvalidLocal()56 public void testInvalidLocal() throws Exception { doTest(true);} testParamListInvalidParameter()57 public void testParamListInvalidParameter() throws Exception { doTest(true); } testSuperClassInvalidSyntax()58 public void testSuperClassInvalidSyntax() throws Exception { doTest(true); } testSuperClassInvalidSyntax2()59 public void testSuperClassInvalidSyntax2() throws Exception { doTest(true); } testInvalidMethodReference()60 public void testInvalidMethodReference() throws Exception { doTest(true); } testInvalidParameter()61 public void testInvalidParameter() throws Exception { doTest(true); } testInvalidMethod()62 public void testInvalidMethod() throws Exception { doTest(true); } testInvalidMethod2()63 public void testInvalidMethod2() throws Exception { doTest(true); } testInvalidMethod3()64 public void testInvalidMethod3() throws Exception { doTest(true); } testInvalidMethod4()65 public void testInvalidMethod4() throws Exception { doTest(true); } testMissingDotDot()66 public void testMissingDotDot() throws Exception { doTest(true); } 67 } 68