From 35cf2e6b6148bbdd8332cd6fe78b9b6564ad43ea 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.
---
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/opends/tests/unit-tests-testng/src/server/org/opends/server/api/plugin/DirectoryServerPluginTestCase.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/api/plugin/DirectoryServerPluginTestCase.java
index 4dae005..f13a2c4 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/api/plugin/DirectoryServerPluginTestCase.java
+++ b/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