/*
 *
 *
 */
package com.damnhandy.uri.template;

import java.util.LinkedHashMap;
import java.util.Map;

import org.junit.Test;

/**
 * A TestMultipleOperators.
 * 
 * @author <a href="ryan@damnhandy.com">Ryan J. McDonough</a>
 * @version $Revision: 1.1 $
 */
public class TestMultipleOperators
{

   private static final Map<String, Object> VALUES;

   static
   {
      VALUES = new LinkedHashMap<String, Object>();
      VALUES.put("group_id", "12345");
      VALUES.put("first_name", "John");
      VALUES.put("item_id", "yu780");
      VALUES.put("page", "5");
      VALUES.put("lang", "en");
      VALUES.put("format", "json");
      VALUES.put("q", "URI Templates");
   }
   
   @Test
   public void testMultiplePathOperators() 
   {
      String expression = "/base{/group_id,id}/pages{/page,lang}{?format,q}";
      UriTemplate t = UriTemplate.fromExpression(expression);
      String uri = t.expand(VALUES);
      System.out.println(uri);
   }
}

test to validate how multiple operators of the same type behave