Skip to content

Commit

Permalink
Add test for resource adaption
Browse files Browse the repository at this point in the history
  • Loading branch information
Bart Thierens committed Aug 19, 2024
1 parent bd8f138 commit cbef8f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ public void testGraniteAdaptation() {
com.adobe.granite.asset.api.Asset graniteAsset = asset.adaptTo(com.adobe.granite.asset.api.Asset.class);
assertNotNull(graniteAsset);
assertEquals(asset, graniteAsset.adaptTo(Asset.class));
assertEquals(graniteAsset.adaptTo(Resource.class), asset.adaptTo(Resource.class));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ public void testCQAdaptation() {
com.day.cq.dam.api.Asset cqAsset = asset.adaptTo(com.day.cq.dam.api.Asset.class);
assertNotNull(cqAsset);
assertEquals(asset, cqAsset.adaptTo(Asset.class));
assertEquals(cqAsset.adaptTo(Resource.class), asset.adaptTo(Resource.class));
}

}

0 comments on commit cbef8f3

Please sign in to comment.