File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed
spring-core/src/test/java/org/springframework/core/annotation Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2016 the original author or authors.
2
+ * Copyright 2002-2017 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -204,6 +204,15 @@ public void getAllAnnotationAttributesOnClassWithMultipleComposedAnnotations() {
204
204
attributes .get ("value" ));
205
205
}
206
206
207
+ @ Test
208
+ @ Ignore ("To be validated by " )
209
+ public void getAllMergedAnnotationsOnClassWithInterface () throws NoSuchMethodException {
210
+ Method m = TransactionalServiceImpl .class .getMethod ("doIt" );
211
+ Set <Transactional > allMergedAnnotations =
212
+ getAllMergedAnnotations (m , Transactional .class );
213
+ assertEquals (1 , allMergedAnnotations .size ());
214
+ }
215
+
207
216
@ Test
208
217
public void getMergedAnnotationAttributesOnClassWithLocalAnnotation () {
209
218
Class <?> element = TxConfig .class ;
@@ -1272,4 +1281,17 @@ static class SpringAppConfigClass {
1272
1281
static class ResourceHolder {
1273
1282
}
1274
1283
1284
+ interface TransactionalService {
1285
+
1286
+ @ Transactional
1287
+ void doIt ();
1288
+ }
1289
+
1290
+ class TransactionalServiceImpl implements TransactionalService {
1291
+
1292
+ @ Override
1293
+ public void doIt () {
1294
+ }
1295
+ }
1296
+
1275
1297
}
You can’t perform that action at this time.
0 commit comments