package org.scribe.model; import static org.junit.Assert.*; import org.junit.Test; public class TestParameterList { @Test public void testConstructor() { ParameterList list = new ParameterList(); assertTrue(list.size() == 0); assertTrue(list.asFormUrlEncodedString().equals("")); } @Test public void testAdd() { ParameterList list = new ParameterList(); String key = "Hans"; String value = "Franz"; list.add(key, value); assertTrue(list.size() == 1); assertTrue(list.contains(new Parameter(key, value))); } }