From 67a4a5468874b52f99907bd46ad1c8ba8d43090d Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Fri, 04 May 2007 03:33:03 +0000
Subject: [PATCH] Update the test case that looks at the public methods defined in the plugin API so that it will ignore any methods dynamically added by AspectJ weaving.
---
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/api/plugin/DirectoryServerPluginTestCase.java | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/api/plugin/DirectoryServerPluginTestCase.java b/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/api/plugin/DirectoryServerPluginTestCase.java
index 4dae005..f13a2c4 100644
--- a/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/api/plugin/DirectoryServerPluginTestCase.java
+++ b/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/api/plugin/DirectoryServerPluginTestCase.java
@@ -561,6 +561,12 @@
Class pluginClass = DirectoryServerPlugin.class;
for (Method m : pluginClass.getMethods())
{
+ if (m.getName().startsWith("ajc$"))
+ {
+ // This is a method added by AspectJ weaving. We can ignore it.
+ continue;
+ }
+
if (Modifier.isPublic(m.getModifiers()) &&
(! Modifier.isAbstract(m.getModifiers())))
{
--
Gitblit v1.10.0