Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 142366 Details for
Bug 284348
[Validation] Deterioration of performance with Eclipse Galileo due to Tracing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Testcase for the patch
testcase.patch (text/plain), 2.05 KB, created by
Boris Gruschko
on 2009-07-23 07:20:52 EDT
(
hide
)
Description:
Testcase for the patch
Filename:
MIME Type:
Creator:
Boris Gruschko
Created:
2009-07-23 07:20:52 EDT
Size:
2.05 KB
patch
obsolete
>Index: src/org/eclipse/emf/validation/tests/PluginTest.java >=================================================================== >RCS file: src/org/eclipse/emf/validation/tests/PluginTest.java >diff -N src/org/eclipse/emf/validation/tests/PluginTest.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/emf/validation/tests/PluginTest.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,56 @@ >+/** >+ * <copyright> >+ * >+ * Copyright (c) 2009 SAP AG and others. >+ * 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://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * SAP - Initial API and implementation >+ * >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.emf.validation.tests; >+ >+import org.eclipse.emf.validation.internal.EMFModelValidationPlugin; >+import org.osgi.framework.Bundle; >+ >+import junit.framework.TestCase; >+ >+/** >+ * Tests for the validation plugin integration. >+ * >+ * @author Boris Gruschko >+ * >+ */ >+public class PluginTest extends TestCase { >+ >+ private static final String DEBUG_OPTION = "org.eclipse.emf.validation/debug"; //$NON-NLS-1$ >+ >+ public PluginTest() { >+ super( "Validation plugin integration"); //$NON-NLS-1$ >+ } >+ >+ /** >+ * Tests the dynamic switch into debug/trace mode >+ */ >+ public void testDebugModeSetting() { >+ assertEquals(Bundle.ACTIVE, EMFModelValidationPlugin.getPlugin().getBundle().getState()); >+ assertFalse(EMFModelValidationPlugin.getPlugin().isDebugging()); >+ assertFalse(EMFModelValidationPlugin.Tracing.shouldTrace(DEBUG_OPTION)); >+ >+ EMFModelValidationPlugin.getPlugin().setDebugging(true); >+ >+ assertTrue(EMFModelValidationPlugin.getPlugin().isDebugging()); >+ assertTrue(EMFModelValidationPlugin.Tracing.shouldTrace(DEBUG_OPTION)); >+ >+ EMFModelValidationPlugin.getPlugin().setDebugging(false); >+ >+ assertFalse(EMFModelValidationPlugin.Tracing.shouldTrace(DEBUG_OPTION)); >+ } >+ >+}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 284348
:
142352
| 142366 |
142407