// Path: hangout-core/src/main/java/com/ctrip/ops/sysdev/fieldSetter/FieldSetter.java
// public interface FieldSetter {
//     Pattern p = Pattern.compile("\\[\\S+\\]+");
// 
//     public void setField(Map event, String field, Object value);
// 
//     public void setField(Map event, Object value);
// 
//     public static FieldSetter getFieldSetter(String field) {
//         if (p.matcher(field).matches()) {
//             return new MultiLevelSetter(field);
//         }
//         return new OneLevelSetter(field);
//     }
// }


import com.ctrip.ops.sysdev.fieldSetter.FieldSetter;
import org.testng.Assert;
import org.testng.annotations.Test;
import java.util.HashMap;
import java.util.Map;
package com.ctrip.ops.sysdev.fieldSetter;

/**
 * Created by liujia on 17/2/10.
 */



public class TestFieldSetter {
    @Test
    public void testFieldSetter() {
// Path: hangout-core/src/main/java/com/ctrip/ops/sysdev/fieldSetter/FieldSetter.java
// public interface FieldSetter {
//     Pattern p = Pattern.compile("\\[\\S+\\]+");
// 
//     public void setField(Map event, String field, Object value);
// 
//     public void setField(Map event, Object value);
// 
//     public static FieldSetter getFieldSetter(String field) {
//         if (p.matcher(field).matches()) {
//             return new MultiLevelSetter(field);
//         }
//         return new OneLevelSetter(field);
//     }
// }


// Path: hangout-core/src/test/java/com/ctrip/ops/sysdev/fieldSetter/TestFieldSetter.java
import com.ctrip.ops.sysdev.fieldSetter.FieldSetter;
import org.testng.Assert;
import org.testng.annotations.Test;
import java.util.HashMap;
import java.util.Map;

package com.ctrip.ops.sysdev.fieldSetter;

/**
 * Created by liujia on 17/2/10.
 */



public class TestFieldSetter {
    @Test
    public void testFieldSetter() {
        FieldSetter fieldSetter = FieldSetter.getFieldSetter("[a][b]");