content: /**
   * Copyright (C) 2010-2016 eBusiness Information, Excilys Group
   *
   * Licensed under the Apache License, Version 2.0 (the "License"); you may not
   * use this file except in compliance with the License. You may obtain a copy of
   * the License at
   *
   * http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed To in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
   * License for the specific language governing permissions and limitations under
   * the License.
   */
  package org.androidannotations.test;
  
  import static org.fest.assertions.api.ANDROID.assertThat;
  import static org.fest.assertions.api.Assertions.assertThat;
  import static org.robolectric.Robolectric.setupActivity;
  
  import org.junit.Before;
  import org.junit.Test;
  import org.junit.runner.RunWith;
  import org.robolectric.RobolectricTestRunner;
  
  import android.view.Window;
  
  @RunWith(RobolectricTestRunner.class)
  public class WindowFeatureTest {
  
  	private WindowFeatureActivity_ activity;
  
  	@Before
  	public void setUp() {
  		activity = setupActivity(WindowFeatureActivity_.class);
  	}
  
  	@Test
  	public void testActivityHasWindowFeatures() {
  		assertThat(activity.getWindow()).hasFeature(Window.FEATURE_NO_TITLE).hasFeature(Window.FEATURE_NO_TITLE);
  	}
  
  	@Test
  	public void testActivityHasWindowFlags() {
  		assertThat((activity.getWindow().getAttributes().flags & android.view.WindowManager.LayoutParams.FLAG_FULLSCREEN) != 0).isTrue();
  	}
  }
  