@@ -0,0 +1,3111 @@
+///////////////////////////////////////////////////////////////////////////////%0A// %0A// This file is part of Serleena.%0A// %0A// The MIT License (MIT)%0A//%0A// Copyright (C) 2015 Antonio Cavestro, Gabriele Pozzan, Matteo Lisotto, %0A//   Nicola Mometto, Filippo Sestini, Tobia Tesan, Sebastiano Valle.    %0A//%0A// Permission is hereby granted, free of charge, to any person obtaining a copy%0A// of this software and associated documentation files (the %22Software%22), to %0A// deal in the Software without restriction, including without limitation the%0A// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or%0A// sell copies of the Software, and to permit persons to whom the Software is%0A// furnished to do so, subject to the following conditions:%0A//%0A// The above copyright notice and this permission notice shall be included in%0A// all copies or substantial portions of the Software.%0A//%0A// THE SOFTWARE IS PROVIDED %22AS IS%22, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR%0A// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,%0A// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE%0A// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER%0A// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING%0A// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS%0A// IN THE SOFTWARE.%0A//%0A///////////////////////////////////////////////////////////////////////////////%0A%0A%0A/**%0A * Name: CompassFragmentTest.java%0A * Package: com.kyloth.serleena.view.fragments%0A * Author: Sebastiano Valle%0A *%0A * History:%0A * Version  Programmer       Changes%0A * 1.0.0    Sebastiano Valle Creazione file e scrittura di codice e%0A *                           documentazione in Javadoc.%0A */%0A%0Apackage com.kyloth.serleena.view.fragments;%0A%0Aimport com.kyloth.serleena.presentation.ICompassPresenter;%0Aimport com.kyloth.serleena.presentation.ICompassView;%0Aimport com.kyloth.serleena.presentation.ISerleenaActivity;%0Aimport com.kyloth.serleena.presenters.CompassPresenter;%0Aimport com.kyloth.serleena.presenters.SerleenaActivity;%0Aimport com.kyloth.serleena.view.fragments.CompassFragment;%0Aimport org.junit.Test;%0A%0Aimport org.junit.Test;%0Aimport org.junit.Before;%0Aimport org.junit.Rule;%0Aimport org.junit.rules.ExpectedException;%0Aimport static org.mockito.Mockito.*;%0Aimport static org.junit.Assert.*;%0A%0A/**%0A * Contiene i test di unit%C3%A0 per la classe CompassFragment.%0A *%0A * @author Sebastiano Valle %3Cvalle.sebastiano93@gmail.com%3E%0A * @version 1.0.0%0A * @see com.kyloth.serleena.view.fragments.CompassFragment%0A */%0Apublic class CompassFragmentTest %7B%0A%0A    private ISerleenaActivity activity = mock(ISerleenaActivity.class);%0A    private ICompassView fragment = mock(ICompassView.class);%0A    private ICompassPresenter presenter = mock(ICompassPresenter.class);%0A%0A    @Test%0A    public void shouldCreateCompassFragment() %7B%0A        fragment = new CompassFragment();%0A    %7D%0A%0A    @Test%0A    public void shouldAttachCompassPresenter() %7B%0A        fragment = new CompassFragment();%0A        presenter = mock(ICompassPresenter.class);%0A        fragment.attachPresenter(presenter);%0A    %7D%0A%7D%0A

Add basic test for CompassFragment