# cleanup

This commit is contained in:
Lukas Niemeier
2013-11-30 14:22:33 +01:00
parent 1ab0468739
commit fecbbe171c
12 changed files with 1 additions and 247 deletions
-1
View File
@@ -29,4 +29,3 @@ java/com.sap.sailing.simulator/bin/com/sap/sailing/simulator/Simulator.gwt.xml
/mobile/com.sap.sailing.racecommittee.app/res/values/keys.xml /mobile/com.sap.sailing.racecommittee.app/res/values/keys.xml
/mobile/google-play-services_lib/gen/* /mobile/google-play-services_lib/gen/*
/mobile/google-play-services_lib/gen/com/google/android/gms/BuildConfig.java
@@ -0,0 +1 @@
/bin
@@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
<classpathentry combineaccessrules="false" kind="src" path="/com.sap.sailing.racecommittee.app"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry kind="output" path="bin"/>
</classpath>
@@ -1,17 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>com.sap.sailing.racecommittee.app.test</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
@@ -1,11 +0,0 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.7
@@ -1,78 +0,0 @@
package com.sap.sailing.racecommittee.app.test;
import static org.junit.Assert.assertFalse;
import java.util.Collections;
import java.util.Set;
import org.junit.Test;
import com.sap.sailing.domain.base.impl.BoatClassImpl;
import com.sap.sailing.domain.base.impl.CourseAreaImpl;
import com.sap.sailing.domain.base.impl.FleetImpl;
import com.sap.sailing.domain.base.racegroup.RaceRow;
import com.sap.sailing.domain.base.racegroup.SeriesWithRows;
import com.sap.sailing.domain.base.racegroup.impl.RaceGroupImpl;
import com.sap.sailing.domain.base.racegroup.impl.SeriesWithRowsImpl;
import com.sap.sailing.racecommittee.app.domain.ManagedRaceIdentifier;
import com.sap.sailing.racecommittee.app.domain.impl.FleetIdentifierImpl;
import com.sap.sailing.racecommittee.app.domain.impl.ManagedRaceIdentifierImpl;
public class IdentifierTest {
@Test
public void testManagedRaceIdentifierUniqueness() {
final Set<RaceRow> raceRows1 = Collections.emptySet();
final SeriesWithRows series1 = new SeriesWithRowsImpl("ghi", /* isMedal */ false, /* raceRows */ raceRows1);
final Set<SeriesWithRows> raceGroupSeries1 = Collections.singleton(series1);
ManagedRaceIdentifier i1 = new ManagedRaceIdentifierImpl("abc", new FleetIdentifierImpl(new FleetImpl("def"), series1,
new RaceGroupImpl("jkl.mno\\", new BoatClassImpl("505", /* typicallyStartsUpwind */ true), new CourseAreaImpl("Alpha", "Alpha ID"), raceGroupSeries1)));
String i1ID = i1.getId().toString();
final Set<RaceRow> raceRows2 = Collections.emptySet();
final SeriesWithRows series2 = new SeriesWithRowsImpl("mno.ghi", /* isMedal */ false, /* raceRows */ raceRows2);
final Set<SeriesWithRows> raceGroupSeries2 = Collections.singleton(series2);
ManagedRaceIdentifier i2 = new ManagedRaceIdentifierImpl("abc", new FleetIdentifierImpl(new FleetImpl("def"), series2,
new RaceGroupImpl("jkl\\", new BoatClassImpl("505", /* typicallyStartsUpwind */ true), new CourseAreaImpl("Alpha", "Alpha ID"), raceGroupSeries2)));
String i2ID = i2.getId().toString();
assertFalse(i1ID.equals(i2ID));
}
@Test
public void testManagedRaceIdentifierUniqueness2() {
final Set<RaceRow> raceRows1 = Collections.emptySet();
final SeriesWithRows series1 = new SeriesWithRowsImpl("ghi\\", /* isMedal */ false, /* raceRows */ raceRows1);
final Set<SeriesWithRows> raceGroupSeries1 = Collections.singleton(series1);
ManagedRaceIdentifier i1 = new ManagedRaceIdentifierImpl("abc", new FleetIdentifierImpl(new FleetImpl("mno.def"), series1,
new RaceGroupImpl("jkl", new BoatClassImpl("505", /* typicallyStartsUpwind */ true), new CourseAreaImpl("Alpha", "Alpha ID"), raceGroupSeries1)));
String i1ID = i1.getId().toString();
final Set<RaceRow> raceRows2 = Collections.emptySet();
final SeriesWithRows series2 = new SeriesWithRowsImpl("ghi.mno\\", /* isMedal */ false, /* raceRows */ raceRows2);
final Set<SeriesWithRows> raceGroupSeries2 = Collections.singleton(series2);
ManagedRaceIdentifier i2 = new ManagedRaceIdentifierImpl("abc", new FleetIdentifierImpl(new FleetImpl("def"), series2,
new RaceGroupImpl("jkl", new BoatClassImpl("505", /* typicallyStartsUpwind */ true), new CourseAreaImpl("Alpha", "Alpha ID"), raceGroupSeries2)));
String i2ID = i2.getId().toString();
assertFalse(i1ID.equals(i2ID));
}
@Test
public void testManagedRaceIdentifierUniqueness3() {
final Set<RaceRow> raceRows1 = Collections.emptySet();
final SeriesWithRows series1 = new SeriesWithRowsImpl("ghi", /* isMedal */ false, /* raceRows */ raceRows1);
final Set<SeriesWithRows> raceGroupSeries1 = Collections.singleton(series1);
ManagedRaceIdentifier i1 = new ManagedRaceIdentifierImpl("abc", new FleetIdentifierImpl(new FleetImpl("def.mno\\"), series1,
new RaceGroupImpl("jkl", new BoatClassImpl("505", /* typicallyStartsUpwind */ true), new CourseAreaImpl("Alpha", "Alpha ID"), raceGroupSeries1)));
String i1ID = i1.getId().toString();
final Set<RaceRow> raceRows2 = Collections.emptySet();
final SeriesWithRows series2 = new SeriesWithRowsImpl("ghi", /* isMedal */ false, /* raceRows */ raceRows2);
final Set<SeriesWithRows> raceGroupSeries2 = Collections.singleton(series2);
ManagedRaceIdentifier i2 = new ManagedRaceIdentifierImpl("mno.abc", new FleetIdentifierImpl(new FleetImpl("def\\"), series2,
new RaceGroupImpl("jkl", new BoatClassImpl("505", /* typicallyStartsUpwind */ true), new CourseAreaImpl("Alpha", "Alpha ID"), raceGroupSeries2)));
String i2ID = i2.getId().toString();
assertFalse(i1ID.equals(i2ID));
}
}
@@ -1,130 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_weight="0.1">
<TextView
android:id="@+id/textVersionInfo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="6dp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_weight="0.1">
<TextView
android:id="@+id/textPendingEventsLabel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/pending_events" android:padding="6dp"/>
<TextView
android:id="@+id/textPendingEvents"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/unknown" android:padding="6dp"/>
<TextView
android:id="@+id/textLastEventLabel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/last_sent" android:padding="6dp"/>
<TextView
android:id="@+id/textLastEvent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/unknown" android:padding="6dp"/>
<Button
android:id="@+id/btRefresh"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/check_pending_events"
android:onClick="onBtnCheckEventsClick"/>
<Button
android:id="@+id/btCrash"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="CRASH APP"
android:onClick="onBtnCheckEventsClick"/>
</LinearLayout>
<ImageView
android:layout_width="500dp"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:paddingBottom="2dp"
android:scaleType="fitXY"
android:contentDescription="@string/empty"
android:src="@android:drawable/divider_horizontal_textfield" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0.2" >
<Button
android:id="@+id/btnRacesLoad"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/reload_data" />
<Spinner
android:id="@+id/spinnerRacesEventSelect"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:prompt="@string/abort_running_race" />
<Spinner
android:id="@+id/spinnerRacesCourseSelect"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:prompt="@string/abort_running_race" />
<Spinner
android:id="@+id/spinnerRacesRaceSelect"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:prompt="@string/abort_running_race" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0.6">
<ScrollView
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:id="@+id/textRacesView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/race_information" android:padding="6dp"/>
</ScrollView>
<Button
android:id="@+id/btnRacesClear"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/reset_race" />
</LinearLayout>
</LinearLayout>
@@ -1 +0,0 @@
gen
@@ -1 +0,0 @@
This hidden file is here to ensure there is a src folder.
View File