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.

Jdk14TraceTest.java 1.0KB

12345678910111213141516171819202122232425262728293031323334
  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.DefaultTrace;
  13. import org.aspectj.weaver.tools.Jdk14Trace;
  14. public class Jdk14TraceTest extends AbstractTraceTest {
  15. protected void setUp() throws Exception {
  16. super.setUp();
  17. trace = new Jdk14Trace(getClass());
  18. trace.setTraceEnabled(true);
  19. }
  20. public void testJdk14Trace() {
  21. new Jdk14Trace(getClass());
  22. }
  23. public void testSetTraceEnabled() {
  24. DefaultTrace trace = new DefaultTrace(getClass());
  25. trace.setTraceEnabled(true);
  26. assertTrue(trace.isTraceEnabled());
  27. }
  28. }