Package org.robolectric.shadows
Class ShadowResolveInfo
java.lang.Object
org.robolectric.shadows.ShadowResolveInfo
public class ShadowResolveInfo extends Object
Utilities for
ResolveInfo
.-
Constructor Summary
Constructors Constructor Description ShadowResolveInfo()
-
Method Summary
Modifier and Type Method Description static ResolveInfo
newResolveInfo(ResolveInfo orig)
CopiesResolveInfo
.static ResolveInfo
newResolveInfo(String displayName, String packageName)
Creates aResolveInfo
.static ResolveInfo
newResolveInfo(String displayName, String packageName, String activityName)
Creates aResolveInfo
.
-
Constructor Details
-
ShadowResolveInfo
public ShadowResolveInfo()
-
-
Method Details
-
newResolveInfo
Creates aResolveInfo
.- Parameters:
displayName
- Display name.packageName
- Package name.- Returns:
- Resolve info instance.
-
newResolveInfo
public static ResolveInfo newResolveInfo(String displayName, String packageName, String activityName)Creates aResolveInfo
.- Parameters:
displayName
- Display name.packageName
- Package name.activityName
- Activity name.- Returns:
- Resolve info instance.
-
newResolveInfo
CopiesResolveInfo
.Note that this is shallow copy as performed by the copy constructor existing in API 17.
-