com.apple.jobjc.foundation.NSDictionary Java Examples

The following examples show how to use com.apple.jobjc.foundation.NSDictionary. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: VarArgsTest.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
public void testNSDictionary(){
    NSString v1 = Utils.get().strings().nsString("value1");
    NSString v2 = Utils.get().strings().nsString("value2");
    NSString k1 = Utils.get().strings().nsString("key1");
    NSString k2 = Utils.get().strings().nsString("key2");

    NSDictionary dict = ((NSDictionary)FND.NSDictionary().alloc()).initWithObjectsAndKeys(v1, k1, v2, k2, null);

    NSString nsdescr = dict.description();
    String jdescr = Utils.get().strings().javaString(nsdescr);

    assertEquals("{\n    key1 = value1;\n    key2 = value2;\n}", jdescr);
}
 
Example #2
Source File: VarArgsTest.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public void testNSDictionary(){
    NSString v1 = Utils.get().strings().nsString("value1");
    NSString v2 = Utils.get().strings().nsString("value2");
    NSString k1 = Utils.get().strings().nsString("key1");
    NSString k2 = Utils.get().strings().nsString("key2");

    NSDictionary dict = ((NSDictionary)FND.NSDictionary().alloc()).initWithObjectsAndKeys(v1, k1, v2, k2, null);

    NSString nsdescr = dict.description();
    String jdescr = Utils.get().strings().javaString(nsdescr);

    assertEquals("{\n    key1 = value1;\n    key2 = value2;\n}", jdescr);
}
 
Example #3
Source File: VarArgsTest.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public void testNSDictionary(){
    NSString v1 = Utils.get().strings().nsString("value1");
    NSString v2 = Utils.get().strings().nsString("value2");
    NSString k1 = Utils.get().strings().nsString("key1");
    NSString k2 = Utils.get().strings().nsString("key2");

    NSDictionary dict = ((NSDictionary)FND.NSDictionary().alloc()).initWithObjectsAndKeys(v1, k1, v2, k2, null);

    NSString nsdescr = dict.description();
    String jdescr = Utils.get().strings().javaString(nsdescr);

    assertEquals("{\n    key1 = value1;\n    key2 = value2;\n}", jdescr);
}
 
Example #4
Source File: VarArgsTest.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public void testNSDictionary(){
    NSString v1 = Utils.get().strings().nsString("value1");
    NSString v2 = Utils.get().strings().nsString("value2");
    NSString k1 = Utils.get().strings().nsString("key1");
    NSString k2 = Utils.get().strings().nsString("key2");

    NSDictionary dict = ((NSDictionary)FND.NSDictionary().alloc()).initWithObjectsAndKeys(v1, k1, v2, k2, null);

    NSString nsdescr = dict.description();
    String jdescr = Utils.get().strings().javaString(nsdescr);

    assertEquals("{\n    key1 = value1;\n    key2 = value2;\n}", jdescr);
}
 
Example #5
Source File: VarArgsTest.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public void testNSDictionary(){
    NSString v1 = Utils.get().strings().nsString("value1");
    NSString v2 = Utils.get().strings().nsString("value2");
    NSString k1 = Utils.get().strings().nsString("key1");
    NSString k2 = Utils.get().strings().nsString("key2");

    NSDictionary dict = ((NSDictionary)FND.NSDictionary().alloc()).initWithObjectsAndKeys(v1, k1, v2, k2, null);

    NSString nsdescr = dict.description();
    String jdescr = Utils.get().strings().javaString(nsdescr);

    assertEquals("{\n    key1 = value1;\n    key2 = value2;\n}", jdescr);
}
 
Example #6
Source File: VarArgsTest.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
public void testNSDictionary(){
    NSString v1 = Utils.get().strings().nsString("value1");
    NSString v2 = Utils.get().strings().nsString("value2");
    NSString k1 = Utils.get().strings().nsString("key1");
    NSString k2 = Utils.get().strings().nsString("key2");

    NSDictionary dict = ((NSDictionary)FND.NSDictionary().alloc()).initWithObjectsAndKeys(v1, k1, v2, k2, null);

    NSString nsdescr = dict.description();
    String jdescr = Utils.get().strings().javaString(nsdescr);

    assertEquals("{\n    key1 = value1;\n    key2 = value2;\n}", jdescr);
}
 
Example #7
Source File: VarArgsTest.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public void testNSDictionary(){
    NSString v1 = Utils.get().strings().nsString("value1");
    NSString v2 = Utils.get().strings().nsString("value2");
    NSString k1 = Utils.get().strings().nsString("key1");
    NSString k2 = Utils.get().strings().nsString("key2");

    NSDictionary dict = ((NSDictionary)FND.NSDictionary().alloc()).initWithObjectsAndKeys(v1, k1, v2, k2, null);

    NSString nsdescr = dict.description();
    String jdescr = Utils.get().strings().javaString(nsdescr);

    assertEquals("{\n    key1 = value1;\n    key2 = value2;\n}", jdescr);
}
 
Example #8
Source File: VarArgsTest.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public void testNSDictionary(){
    NSString v1 = Utils.get().strings().nsString("value1");
    NSString v2 = Utils.get().strings().nsString("value2");
    NSString k1 = Utils.get().strings().nsString("key1");
    NSString k2 = Utils.get().strings().nsString("key2");

    NSDictionary dict = ((NSDictionary)FND.NSDictionary().alloc()).initWithObjectsAndKeys(v1, k1, v2, k2, null);

    NSString nsdescr = dict.description();
    String jdescr = Utils.get().strings().javaString(nsdescr);

    assertEquals("{\n    key1 = value1;\n    key2 = value2;\n}", jdescr);
}
 
Example #9
Source File: VarArgsTest.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public void testNSDictionary(){
    NSString v1 = Utils.get().strings().nsString("value1");
    NSString v2 = Utils.get().strings().nsString("value2");
    NSString k1 = Utils.get().strings().nsString("key1");
    NSString k2 = Utils.get().strings().nsString("key2");

    NSDictionary dict = ((NSDictionary)FND.NSDictionary().alloc()).initWithObjectsAndKeys(v1, k1, v2, k2, null);

    NSString nsdescr = dict.description();
    String jdescr = Utils.get().strings().javaString(nsdescr);

    assertEquals("{\n    key1 = value1;\n    key2 = value2;\n}", jdescr);
}
 
Example #10
Source File: VarArgsTest.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
public void testNSDictionary(){
    NSString v1 = Utils.get().strings().nsString("value1");
    NSString v2 = Utils.get().strings().nsString("value2");
    NSString k1 = Utils.get().strings().nsString("key1");
    NSString k2 = Utils.get().strings().nsString("key2");

    NSDictionary dict = ((NSDictionary)FND.NSDictionary().alloc()).initWithObjectsAndKeys(v1, k1, v2, k2, null);

    NSString nsdescr = dict.description();
    String jdescr = Utils.get().strings().javaString(nsdescr);

    assertEquals("{\n    key1 = value1;\n    key2 = value2;\n}", jdescr);
}
 
Example #11
Source File: VarArgsTest.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
public void testNSDictionary(){
    NSString v1 = Utils.get().strings().nsString("value1");
    NSString v2 = Utils.get().strings().nsString("value2");
    NSString k1 = Utils.get().strings().nsString("key1");
    NSString k2 = Utils.get().strings().nsString("key2");

    NSDictionary dict = ((NSDictionary)FND.NSDictionary().alloc()).initWithObjectsAndKeys(v1, k1, v2, k2, null);

    NSString nsdescr = dict.description();
    String jdescr = Utils.get().strings().javaString(nsdescr);

    assertEquals("{\n    key1 = value1;\n    key2 = value2;\n}", jdescr);
}
 
Example #12
Source File: VarArgsTest.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
public void testNSDictionary(){
    NSString v1 = Utils.get().strings().nsString("value1");
    NSString v2 = Utils.get().strings().nsString("value2");
    NSString k1 = Utils.get().strings().nsString("key1");
    NSString k2 = Utils.get().strings().nsString("key2");

    NSDictionary dict = ((NSDictionary)FND.NSDictionary().alloc()).initWithObjectsAndKeys(v1, k1, v2, k2, null);

    NSString nsdescr = dict.description();
    String jdescr = Utils.get().strings().javaString(nsdescr);

    assertEquals("{\n    key1 = value1;\n    key2 = value2;\n}", jdescr);
}