X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=android%2Fandroid_api%2Fbase%2Fsrc%2FandroidTest%2Fjava%2Forg%2Fiotivity%2Fbase%2FOcRepresentationTest.java;h=c7b5f30fff96ae2bdb6e736824ddd482f8e059e9;hb=17c68b2fd1e74586f85e552eeab4e32dc121f8a0;hp=cbed2d5a9a25fcc4d28bdde9a905fb66ce7a91dc;hpb=8c01dff2c5bc5496f7dc1632c498943ec6ecb015;p=platform%2Fupstream%2Fiotivity.git diff --git a/android/android_api/base/src/androidTest/java/org/iotivity/base/OcRepresentationTest.java b/android/android_api/base/src/androidTest/java/org/iotivity/base/OcRepresentationTest.java index cbed2d5..c7b5f30 100644 --- a/android/android_api/base/src/androidTest/java/org/iotivity/base/OcRepresentationTest.java +++ b/android/android_api/base/src/androidTest/java/org/iotivity/base/OcRepresentationTest.java @@ -190,6 +190,12 @@ public class OcRepresentationTest extends InstrumentationTestCase { public void testAttributeAccessByType() throws OcException { OcRepresentation rep = new OcRepresentation(); + //null + OcRepresentation repNull = null; + rep.setValue("nullKey", repNull); + OcRepresentation repNullActual = rep.getValue("nullKey"); + assertNull(repNullActual); + //integer String intK = "intK"; int intV = 4;