View Javadoc
1   package org.kuali.common.util.property;
2   
3   import java.util.List;
4   
5   import org.junit.Test;
6   import org.kuali.common.core.json.api.JsonService;
7   import org.kuali.common.core.json.jackson.JacksonJsonService;
8   
9   import com.google.common.collect.ImmutableList;
10  
11  public class ImmutablePropertiesTest {
12  
13      @Test
14      public void test() {
15          try {
16              JsonService json = new JacksonJsonService();
17              List<String> list = ImmutableList.of("foobar", "poopie pants");
18              System.out.println(json.writeString(list));
19          } catch (Throwable e) {
20              e.printStackTrace();
21          }
22      }
23  }