
org.robolectric.shadows.ShadowContextThemeWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shadows-core-v23 Show documentation
Show all versions of shadows-core-v23 Show documentation
An alternative Android testing framework.
package org.robolectric.shadows;
import android.view.ContextThemeWrapper;
import org.robolectric.annotation.Implements;
import org.robolectric.annotation.RealObject;
import org.robolectric.util.ReflectionHelpers;
/**
* Shadow for {@link android.view.ContextThemeWrapper}.
*/
@SuppressWarnings({"UnusedDeclaration"})
@Implements(ContextThemeWrapper.class)
public class ShadowContextThemeWrapper extends ShadowContextWrapper {
@RealObject private ContextThemeWrapper realContextThemeWrapper;
public Integer callGetThemeResId() {
return ReflectionHelpers.callInstanceMethod(realContextThemeWrapper, "getThemeResId");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy