12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- /* *******************************************************************
- * Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC).
- * All rights reserved.
- * This program and the accompanying materials are made available
- * under the terms of the Eclipse Public License v 2.0
- * which accompanies this distribution and is available at
- * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
- *
- * Contributors:
- * PARC initial implementation
- * ******************************************************************/
-
- package org.aspectj.ajdt.internal.compiler.batch;
-
- import java.io.IOException;
-
-
- public class PerformanceTestCase extends CommandTestCase {
-
- public PerformanceTestCase(String name) {
- super(name);
- }
-
-
- // this is a nice test, but not strictly needed
- public void xxx_testLazyTjpOff() throws IOException {
- checkCompile("src1/LazyTjp.aj", NO_ERRORS);
- try {
- runMain("LazyTjp");
- fail("expected an exception when running without -XlazyTjp");
- } catch (IllegalStateException e) {
- // expected exception thrown when no -XlazyTjp
- }
- }
-
- public void xtestLazyTjp() throws IOException {
- // Pass -Xlint:error to promote the 'can not implement lazyTjp on this
- // joinpoint method-execution(int LazyTjp.doit3(int)) because around advice is used [Xlint:canNotImplementLazyTjp]'
- // into an error so that we can use checkCompiles() ability to check errors occur.
- // Pass -proceedOnError to ensure even though we get that message, we still get the class file on disk
- String sandboxName = getSandboxName();
- checkCompile("src1/LazyTjp.aj", new String[] {"-Xlint:error","-proceedOnError", "-1.4"}, new int[] {96}, sandboxName);
- runMain("LazyTjp");
- }
-
- }
|