aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-testing-harness/src/main
diff options
context:
space:
mode:
authorDavid Gageot <david@gageot.net>2012-05-25 08:45:45 +0200
committerDavid Gageot <david@gageot.net>2012-05-25 08:59:32 +0200
commit7c03664400952bb5497e07a76e4d26bd9a22b7d3 (patch)
treea47ad18c0f5ae442020d75916baa5e3b9e9e6398 /sonar-testing-harness/src/main
parent5e86cfa298427f58bb8d342ed972f5c77a35c816 (diff)
downloadsonarqube-7c03664400952bb5497e07a76e4d26bd9a22b7d3.tar.gz
sonarqube-7c03664400952bb5497e07a76e4d26bd9a22b7d3.zip
Create 'My Favourites' Dashboard through extension point.
The dashboard is created but not activated.
Diffstat (limited to 'sonar-testing-harness/src/main')
-rw-r--r--sonar-testing-harness/src/main/java/org/sonar/test/MoreConditions.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/sonar-testing-harness/src/main/java/org/sonar/test/MoreConditions.java b/sonar-testing-harness/src/main/java/org/sonar/test/MoreConditions.java
index c06b78a65e6..0f4b24b5a5d 100644
--- a/sonar-testing-harness/src/main/java/org/sonar/test/MoreConditions.java
+++ b/sonar-testing-harness/src/main/java/org/sonar/test/MoreConditions.java
@@ -59,4 +59,13 @@ public final class MoreConditions {
}
};
}
+
+ public static Condition<Object> reflectionEqualTo(final Object expected) {
+ return new Condition<Object>() {
+ @Override
+ public boolean matches(Object actual) {
+ return EqualsBuilder.reflectionEquals(expected, actual);
+ }
+ };
+ }
}