Fixup Augmentable and Identifiable methods changing
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / test / java / org / opendaylight / controller / sal / binding / test / AugmentationVerifier.java
index 939349c96f815a173aa0c06240397ae59c67c66a..77b34a856ddd51f506035865da58e8f124dc7d8d 100644 (file)
@@ -16,23 +16,23 @@ public class AugmentationVerifier<T extends Augmentable<T>> {
 
     private final T object;
 
-    public AugmentationVerifier(T objectToVerify) {
+    public AugmentationVerifier(final T objectToVerify) {
         this.object = objectToVerify;
     }
 
-    public AugmentationVerifier<T> assertHasAugmentation(Class<? extends Augmentation<T>> augmentation) {
+    public AugmentationVerifier<T> assertHasAugmentation(final Class<? extends Augmentation<T>> augmentation) {
         assertHasAugmentation(object, augmentation);
         return this;
     }
 
-    public static <T extends Augmentable<T>> void assertHasAugmentation(T object,
-            Class<? extends Augmentation<T>> augmentation) {
+    public static <T extends Augmentable<T>> void assertHasAugmentation(final T object,
+            final Class<? extends Augmentation<T>> augmentation) {
         assertNotNull(object);
         assertNotNull("Augmentation " + augmentation.getSimpleName() + " is not present.",
-                object.getAugmentation(augmentation));
+                object.augmentation(augmentation));
     }
 
-    public static <T extends Augmentable<T>> AugmentationVerifier<T> from(T obj) {
+    public static <T extends Augmentable<T>> AugmentationVerifier<T> from(final T obj) {
         return new AugmentationVerifier<>(obj);
     }
 }