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.

Jdk14TraceFactoryTest.java 1023B

123456789101112131415161718192021222324252627282930
  1. /*******************************************************************************
  2. * Copyright (c) 2006 IBM Corporation and others.
  3. * All rights reserved. This program and the accompanying materials
  4. * are made available under the terms of the Eclipse Public License v1.0
  5. * which accompanies this distribution, and is available at
  6. * http://www.eclipse.org/legal/epl-v10.html
  7. *
  8. * Contributors:
  9. * Matthew Webster - initial implementation
  10. *******************************************************************************/
  11. package org.aspectj.weaver;
  12. import org.aspectj.weaver.tools.Jdk14TraceFactory;
  13. import org.aspectj.weaver.tools.Trace;
  14. import junit.framework.TestCase;
  15. public class Jdk14TraceFactoryTest extends TestCase {
  16. public void testJdk14TraceFactory() {
  17. new Jdk14TraceFactory();
  18. }
  19. public void testGetTrace() {
  20. Jdk14TraceFactory factory = new Jdk14TraceFactory();
  21. Trace trace = factory.getTrace(getClass());
  22. assertFalse("Tracing should be disbled by default",trace.isTraceEnabled());
  23. }
  24. }