Back to project page epgreader-android.
The source code is released under:
Apache License
If you think the Android project epgreader-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.jeffpalm.android.util; //from www . j a v a 2s. co m import junit.framework.TestCase; import com.jeffpalm.android.util.ExpandableValue; public class ExpandableValueTest extends TestCase { public void testCreate() { ExpandableValue<String> value = ExpandableValue.create("hello"); assertEquals("hello", value.getValue()); assertEquals(false, value.isExpanded()); } public void testToggle() { ExpandableValue<String> value = ExpandableValue.create("hello"); assertEquals(false, value.isExpanded()); value.toggle(); assertEquals(true, value.isExpanded()); value.toggle(); assertEquals(false, value.isExpanded()); } }