Skip to content

Commit

Permalink
fixes after review java-native-access#1433 (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
shalupov committed May 7, 2022
1 parent 760ccdd commit a67ac3f
Showing 1 changed file with 6 additions and 0 deletions.
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 a67ac3f

Please sign in to comment.