Skip to content

Commit

Permalink
more assertions for CFDictionaryRef.ByReference and CFStringRef.ByRef…
Browse files Browse the repository at this point in the history
…erence

fixes after review java-native-access#1433
  • Loading branch information
shalupov committed May 7, 2022
1 parent 19c66f3 commit 3575a0e
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,9 @@ public void testCFStringRefByReference() {
// test constructor(null)
assertNull(new CFStringRef.ByReference(null).getValue());

// test constructor(CFStringRef)
assertTrue(CF.CFEqual(new CFStringRef.ByReference(key).getStringRefValue(), key));

// test setValue(null)
assertNotNull(byRef.getStringRefValue());
byRef.setValue(null);
Expand Down Expand Up @@ -315,6 +318,9 @@ public void testCFDictionaryRefByReference() {
// test constructor(null)
assertNull(new CFDictionaryRef.ByReference(null).getValue());

// test constructor(CFDictionaryRef)
assertTrue(CF.CFEqual(new CFDictionaryRef.ByReference(dict).getDictionaryRefValue(), dict));

// test setValue(null)
assertNotNull(byRef.getDictionaryRefValue());
byRef.setValue(null);
Expand Down

0 comments on commit 3575a0e

Please sign in to comment.