Browse Source

src -> java5-src; note test target runs AsmModuleTests, not Loadtime5ModuleTests - prior bug. See newbuild.xml.

tags/PRE_ANDY
wisberg 19 years ago
parent
commit
21dda4b6e9

+ 1
- 1
loadtime5/build.xml View File

@@ -28,7 +28,7 @@
<!-- FIXME: we override compile due to use of 1.5 -->
<mkdir dir="${basedir}/bin"/>
<javac debug="on" destdir="${basedir}/bin" source="1.5" target="1.5">
<src path="${basedir}/src"/>
<src path="${basedir}/java5-src"/>
<classpath refid="loadtime5.src.path"/>
</javac>
</target>

loadtime5/src/org/aspectj/weaver/loadtime/Agent.java → loadtime5/java5-src/org/aspectj/weaver/loadtime/Agent.java View File


loadtime5/src/org/aspectj/weaver/loadtime/ClassPreProcessorAgentAdapter.java → loadtime5/java5-src/org/aspectj/weaver/loadtime/ClassPreProcessorAgentAdapter.java View File


+ 29
- 0
loadtime5/java5-testsrc/Loadtime515ModuleTests.java View File

@@ -0,0 +1,29 @@
/*******************************************************************************
* 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: (See CVS logs)
*
*******************************************************************************/

import org.aspectj.weaver.loadtime.LoadtimeTests;

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

/**
*/
public class Loadtime515ModuleTests extends TestCase {

public static Test suite() {
TestSuite suite = new TestSuite(Loadtime515ModuleTests.class.getName());
suite.addTestSuite(LoadtimeTests.class);
return suite;
}

}

+ 26
- 0
loadtime5/java5-testsrc/org/aspectj/weaver/loadtime/LoadtimeTests.java View File

@@ -0,0 +1,26 @@
/* *******************************************************************
* 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:
* Wes Isberg initial implementation
* ******************************************************************/


package org.aspectj.weaver.loadtime;

import java.lang.instrument.Instrumentation;

import junit.framework.TestCase;

public class LoadtimeTests extends TestCase {

public void testPremain() throws Exception {
Class[] parmTypes = {String.class, Instrumentation.class };
assertNotNull(Agent.class.getMethod("premain", parmTypes));
}
}

+ 6
- 0
loadtime5/newbuild.xml View File

@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<!-- see ../build/*.html for explanation -->
<project name="loadtime5" default="test" basedir=".">
<import file="${basedir}/../build/build.xml"/>
</project>


+ 32
- 0
loadtime5/testsrc/Loadtime5ModuleTests.java View File

@@ -0,0 +1,32 @@
/*******************************************************************************
* 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: (See CVS logs)
*
*******************************************************************************/

import org.aspectj.testing.util.TestUtil;

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

/**
*/
public class Loadtime5ModuleTests extends TestCase {

public static Test suite() {
TestSuite suite = new TestSuite(Loadtime5ModuleTests.class.getName());
TestUtil.loadTestsReflectively(suite, "Loadtime515ModuleTests", true);
return suite;
}
public static void main(String[] args) {
junit.textui.TestRunner.main(new String[] {Loadtime5ModuleTests.class.getName()});
}

}

Loading…
Cancel
Save