You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

LoadtimeTests.java 870B

1234567891011121314151617181920212223242526
  1. /* *******************************************************************
  2. * Copyright (c) 2005 Contributors.
  3. * All rights reserved.
  4. * This program and the accompanying materials are made available
  5. * under the terms of the Eclipse Public License v1.0
  6. * which accompanies this distribution and is available at
  7. * http://eclipse.org/legal/epl-v10.html
  8. *
  9. * Contributors:
  10. * Wes Isberg initial implementation
  11. * ******************************************************************/
  12. package org.aspectj.weaver.loadtime;
  13. import java.lang.instrument.Instrumentation;
  14. import junit.framework.TestCase;
  15. public class LoadtimeTests extends TestCase {
  16. public void testPremain() throws Exception {
  17. Class[] parmTypes = {String.class, Instrumentation.class };
  18. assertNotNull(Agent.class.getMethod("premain", parmTypes));
  19. }
  20. }