Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

ModelTests.java 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /********************************************************************
  2. * Copyright (c) 2006 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 - initial version
  10. *******************************************************************/
  11. package org.aspectj.systemtest.model;
  12. import java.io.File;
  13. import junit.framework.Test;
  14. import org.aspectj.testing.XMLBasedAjcTestCase;
  15. /**
  16. * Tests the model when there is no requirement on Java5 features.
  17. * @see org.aspectj.systemtest.model.ModelTestCase
  18. */
  19. public class ModelTests extends ModelTestCase {
  20. static {
  21. // Switch this to true for a single iteration if you want to reconstruct the
  22. // 'expected model' files.
  23. regenerate = false;
  24. // Switch this to true if you want to debug the comparison
  25. debugTest = false;
  26. }
  27. public void testSourceLocationAndJarFile_pr145963() {runModelTest("sourcelocation and jar file","pr145963_1");}
  28. public void testSourceLocationAndClassFile_pr145963() {runModelTest("sourcelocation and class file","pr145963_2");}
  29. public void testAspectInDefaultPackage_pr145963() {runModelTest("aspect in default package", "pr145963_3");}
  30. public void testAspectInJavaFile_pr145963() {runModelTest("aspect in java file", "pr145963_4");}
  31. /////////////////////////////////////////
  32. public static Test suite() {
  33. return XMLBasedAjcTestCase.loadSuite(ModelTests.class);
  34. }
  35. protected File getSpecFile() {
  36. return new File("../tests/src/org/aspectj/systemtest/model/model.xml");
  37. }
  38. }