Why are superclass The superclass is parameterized in JAVA [closed]
package com.android.example.spinner.test;
import com.android.example.spinner.SpinnerActivity;
impo开发者_JAVA技巧rt android.test.ActivityInstrumentationTestCase2;
public class SpinnerActivityTest extends
ActivityInstrumentationTestCase2<SpinnerActivity> {
}
This is because we are declaring that SpinnerActivityTest is a specific type of ActivityInstrumentationTestCase2 – one that deals in some way with SpinnerActivity objects.
As to how SpinnerActivity is significant to the TestCase class, well, you would have to look at the class concerned.
加载中,请稍侯......
精彩评论