Back to project page android-view-selector.
The source code is released under:
Copyright (c) 2013 Nik Haldimann Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Soft...
If you think the Android project android-view-selector 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.nikhaldimann.viewselector.android.attributes; /*from w ww . j a va 2 s . co m*/ import android.widget.TextView; import com.nikhaldimann.viewselector.android.testutil.AndroidTestViewFactory; import com.nikhaldimann.viewselector.attributes.ViewAttributes; import com.nikhaldimann.viewselector.test.abstrakt.attributes.AbstractViewAttributesTest; import com.nikhaldimann.viewselector.test.util.ViewFactory; public class ViewAttributesTest extends AbstractViewAttributesTest { protected ViewFactory createViewFactory() { return new AndroidTestViewFactory(getContext()); } public void testCallGettersOnBaseClass() { TextView view = viewFactory.createTextView(); view.setMinimumHeight(200); view.setPivotX(1.25f); assertEquals(200, ViewAttributes.callGetter(view, "getMinimumHeight")); assertEquals(1.25f, ViewAttributes.callGetter(view, "getPivotX")); } }