final VariantMock deviceVariantMock =
new VariantMock("deviceVariantMock", expectations);
deviceVariantMock.expects.getVariantType().returns(
VariantType.THEME).any();
final StyleSheetMock deviceStyleSheetMock =
new StyleSheetMock("deviceStyleSheetMock", expectations);
deviceStyleSheetMock.expects.getRules().returns(
Collections.singletonList("device rule")).any();
final ActivatedThemeContent deviceContent =
new ActivatedThemeContent(deviceStyleSheetMock, true);
deviceVariantMock.expects.getContent().returns(deviceContent).any();
final VariantMock fallbackDeviceVariantMock =
new VariantMock("fallbackDeviceVariantMock", expectations);
fallbackDeviceVariantMock.expects.getVariantType().returns(
VariantType.THEME).any();
final StyleSheetMock fallbackDeviceStyleSheetMock =
new StyleSheetMock("fallbackDeviceStyleSheetMock", expectations);
fallbackDeviceStyleSheetMock.expects.getRules().returns(
Collections.singletonList("fallback device rule")).any();
final ActivatedThemeContent fallbackDeviceContent =
new ActivatedThemeContent(fallbackDeviceStyleSheetMock, true);
fallbackDeviceVariantMock.expects.getContent().returns(