10888a09821a98ac0680fad765217302858e70fa4Paul Duffin/*
20888a09821a98ac0680fad765217302858e70fa4Paul Duffin * Copyright (C) 2008 The Guava Authors
30888a09821a98ac0680fad765217302858e70fa4Paul Duffin *
40888a09821a98ac0680fad765217302858e70fa4Paul Duffin * Licensed under the Apache License, Version 2.0 (the "License");
50888a09821a98ac0680fad765217302858e70fa4Paul Duffin * you may not use this file except in compliance with the License.
60888a09821a98ac0680fad765217302858e70fa4Paul Duffin * You may obtain a copy of the License at
70888a09821a98ac0680fad765217302858e70fa4Paul Duffin *
80888a09821a98ac0680fad765217302858e70fa4Paul Duffin * http://www.apache.org/licenses/LICENSE-2.0
90888a09821a98ac0680fad765217302858e70fa4Paul Duffin *
100888a09821a98ac0680fad765217302858e70fa4Paul Duffin * Unless required by applicable law or agreed to in writing, software
110888a09821a98ac0680fad765217302858e70fa4Paul Duffin * distributed under the License is distributed on an "AS IS" BASIS,
120888a09821a98ac0680fad765217302858e70fa4Paul Duffin * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
130888a09821a98ac0680fad765217302858e70fa4Paul Duffin * See the License for the specific language governing permissions and
140888a09821a98ac0680fad765217302858e70fa4Paul Duffin * limitations under the License.
150888a09821a98ac0680fad765217302858e70fa4Paul Duffin */
160888a09821a98ac0680fad765217302858e70fa4Paul Duffinpackage com.google.common.primitives;
170888a09821a98ac0680fad765217302858e70fa4Paul Duffinpublic class FloatsTest_gwt extends com.google.gwt.junit.client.GWTTestCase {
180888a09821a98ac0680fad765217302858e70fa4Paul Duffin@Override public String getModuleName() {
190888a09821a98ac0680fad765217302858e70fa4Paul Duffin  return "com.google.common.primitives.testModule";
200888a09821a98ac0680fad765217302858e70fa4Paul Duffin}
210888a09821a98ac0680fad765217302858e70fa4Paul Duffinpublic void testAsListEmpty() throws Exception {
220888a09821a98ac0680fad765217302858e70fa4Paul Duffin  com.google.common.primitives.FloatsTest testCase = new com.google.common.primitives.FloatsTest();
230888a09821a98ac0680fad765217302858e70fa4Paul Duffin  testCase.testAsListEmpty();
240888a09821a98ac0680fad765217302858e70fa4Paul Duffin}
250888a09821a98ac0680fad765217302858e70fa4Paul Duffin
260888a09821a98ac0680fad765217302858e70fa4Paul Duffinpublic void testAsList_isAView() throws Exception {
270888a09821a98ac0680fad765217302858e70fa4Paul Duffin  com.google.common.primitives.FloatsTest testCase = new com.google.common.primitives.FloatsTest();
280888a09821a98ac0680fad765217302858e70fa4Paul Duffin  testCase.testAsList_isAView();
290888a09821a98ac0680fad765217302858e70fa4Paul Duffin}
300888a09821a98ac0680fad765217302858e70fa4Paul Duffin
310888a09821a98ac0680fad765217302858e70fa4Paul Duffinpublic void testAsList_subList_toArray_roundTrip() throws Exception {
320888a09821a98ac0680fad765217302858e70fa4Paul Duffin  com.google.common.primitives.FloatsTest testCase = new com.google.common.primitives.FloatsTest();
330888a09821a98ac0680fad765217302858e70fa4Paul Duffin  testCase.testAsList_subList_toArray_roundTrip();
340888a09821a98ac0680fad765217302858e70fa4Paul Duffin}
350888a09821a98ac0680fad765217302858e70fa4Paul Duffin
360888a09821a98ac0680fad765217302858e70fa4Paul Duffinpublic void testAsList_toArray_roundTrip() throws Exception {
370888a09821a98ac0680fad765217302858e70fa4Paul Duffin  com.google.common.primitives.FloatsTest testCase = new com.google.common.primitives.FloatsTest();
380888a09821a98ac0680fad765217302858e70fa4Paul Duffin  testCase.testAsList_toArray_roundTrip();
390888a09821a98ac0680fad765217302858e70fa4Paul Duffin}
400888a09821a98ac0680fad765217302858e70fa4Paul Duffin
410888a09821a98ac0680fad765217302858e70fa4Paul Duffinpublic void testCompare() throws Exception {
420888a09821a98ac0680fad765217302858e70fa4Paul Duffin  com.google.common.primitives.FloatsTest testCase = new com.google.common.primitives.FloatsTest();
430888a09821a98ac0680fad765217302858e70fa4Paul Duffin  testCase.testCompare();
440888a09821a98ac0680fad765217302858e70fa4Paul Duffin}
450888a09821a98ac0680fad765217302858e70fa4Paul Duffin
460888a09821a98ac0680fad765217302858e70fa4Paul Duffinpublic void testConcat() throws Exception {
470888a09821a98ac0680fad765217302858e70fa4Paul Duffin  com.google.common.primitives.FloatsTest testCase = new com.google.common.primitives.FloatsTest();
480888a09821a98ac0680fad765217302858e70fa4Paul Duffin  testCase.testConcat();
490888a09821a98ac0680fad765217302858e70fa4Paul Duffin}
500888a09821a98ac0680fad765217302858e70fa4Paul Duffin
510888a09821a98ac0680fad765217302858e70fa4Paul Duffinpublic void testContains() throws Exception {
520888a09821a98ac0680fad765217302858e70fa4Paul Duffin  com.google.common.primitives.FloatsTest testCase = new com.google.common.primitives.FloatsTest();
530888a09821a98ac0680fad765217302858e70fa4Paul Duffin  testCase.testContains();
540888a09821a98ac0680fad765217302858e70fa4Paul Duffin}
550888a09821a98ac0680fad765217302858e70fa4Paul Duffin
560888a09821a98ac0680fad765217302858e70fa4Paul Duffinpublic void testEnsureCapacity() throws Exception {
570888a09821a98ac0680fad765217302858e70fa4Paul Duffin  com.google.common.primitives.FloatsTest testCase = new com.google.common.primitives.FloatsTest();
580888a09821a98ac0680fad765217302858e70fa4Paul Duffin  testCase.testEnsureCapacity();
590888a09821a98ac0680fad765217302858e70fa4Paul Duffin}
600888a09821a98ac0680fad765217302858e70fa4Paul Duffin
610888a09821a98ac0680fad765217302858e70fa4Paul Duffinpublic void testEnsureCapacity_fail() throws Exception {
620888a09821a98ac0680fad765217302858e70fa4Paul Duffin  com.google.common.primitives.FloatsTest testCase = new com.google.common.primitives.FloatsTest();
630888a09821a98ac0680fad765217302858e70fa4Paul Duffin  testCase.testEnsureCapacity_fail();
640888a09821a98ac0680fad765217302858e70fa4Paul Duffin}
650888a09821a98ac0680fad765217302858e70fa4Paul Duffin
660888a09821a98ac0680fad765217302858e70fa4Paul Duffinpublic void testHashCode() throws Exception {
670888a09821a98ac0680fad765217302858e70fa4Paul Duffin  com.google.common.primitives.FloatsTest testCase = new com.google.common.primitives.FloatsTest();
680888a09821a98ac0680fad765217302858e70fa4Paul Duffin  testCase.testHashCode();
690888a09821a98ac0680fad765217302858e70fa4Paul Duffin}
700888a09821a98ac0680fad765217302858e70fa4Paul Duffin
710888a09821a98ac0680fad765217302858e70fa4Paul Duffinpublic void testIndexOf() throws Exception {
720888a09821a98ac0680fad765217302858e70fa4Paul Duffin  com.google.common.primitives.FloatsTest testCase = new com.google.common.primitives.FloatsTest();
730888a09821a98ac0680fad765217302858e70fa4Paul Duffin  testCase.testIndexOf();
740888a09821a98ac0680fad765217302858e70fa4Paul Duffin}
750888a09821a98ac0680fad765217302858e70fa4Paul Duffin
760888a09821a98ac0680fad765217302858e70fa4Paul Duffinpublic void testIndexOf_arrayTarget() throws Exception {
770888a09821a98ac0680fad765217302858e70fa4Paul Duffin  com.google.common.primitives.FloatsTest testCase = new com.google.common.primitives.FloatsTest();
780888a09821a98ac0680fad765217302858e70fa4Paul Duffin  testCase.testIndexOf_arrayTarget();
790888a09821a98ac0680fad765217302858e70fa4Paul Duffin}
800888a09821a98ac0680fad765217302858e70fa4Paul Duffin
810888a09821a98ac0680fad765217302858e70fa4Paul Duffinpublic void testIsFinite() throws Exception {
820888a09821a98ac0680fad765217302858e70fa4Paul Duffin  com.google.common.primitives.FloatsTest testCase = new com.google.common.primitives.FloatsTest();
830888a09821a98ac0680fad765217302858e70fa4Paul Duffin  testCase.testIsFinite();
840888a09821a98ac0680fad765217302858e70fa4Paul Duffin}
850888a09821a98ac0680fad765217302858e70fa4Paul Duffin
860888a09821a98ac0680fad765217302858e70fa4Paul Duffinpublic void testLastIndexOf() throws Exception {
870888a09821a98ac0680fad765217302858e70fa4Paul Duffin  com.google.common.primitives.FloatsTest testCase = new com.google.common.primitives.FloatsTest();
880888a09821a98ac0680fad765217302858e70fa4Paul Duffin  testCase.testLastIndexOf();
890888a09821a98ac0680fad765217302858e70fa4Paul Duffin}
900888a09821a98ac0680fad765217302858e70fa4Paul Duffin
910888a09821a98ac0680fad765217302858e70fa4Paul Duffinpublic void testLexicographicalComparator() throws Exception {
920888a09821a98ac0680fad765217302858e70fa4Paul Duffin  com.google.common.primitives.FloatsTest testCase = new com.google.common.primitives.FloatsTest();
930888a09821a98ac0680fad765217302858e70fa4Paul Duffin  testCase.testLexicographicalComparator();
940888a09821a98ac0680fad765217302858e70fa4Paul Duffin}
950888a09821a98ac0680fad765217302858e70fa4Paul Duffin
960888a09821a98ac0680fad765217302858e70fa4Paul Duffinpublic void testMax() throws Exception {
970888a09821a98ac0680fad765217302858e70fa4Paul Duffin  com.google.common.primitives.FloatsTest testCase = new com.google.common.primitives.FloatsTest();
980888a09821a98ac0680fad765217302858e70fa4Paul Duffin  testCase.testMax();
990888a09821a98ac0680fad765217302858e70fa4Paul Duffin}
1000888a09821a98ac0680fad765217302858e70fa4Paul Duffin
1010888a09821a98ac0680fad765217302858e70fa4Paul Duffinpublic void testMax_noArgs() throws Exception {
1020888a09821a98ac0680fad765217302858e70fa4Paul Duffin  com.google.common.primitives.FloatsTest testCase = new com.google.common.primitives.FloatsTest();
1030888a09821a98ac0680fad765217302858e70fa4Paul Duffin  testCase.testMax_noArgs();
1040888a09821a98ac0680fad765217302858e70fa4Paul Duffin}
1050888a09821a98ac0680fad765217302858e70fa4Paul Duffin
1060888a09821a98ac0680fad765217302858e70fa4Paul Duffinpublic void testMin() throws Exception {
1070888a09821a98ac0680fad765217302858e70fa4Paul Duffin  com.google.common.primitives.FloatsTest testCase = new com.google.common.primitives.FloatsTest();
1080888a09821a98ac0680fad765217302858e70fa4Paul Duffin  testCase.testMin();
1090888a09821a98ac0680fad765217302858e70fa4Paul Duffin}
1100888a09821a98ac0680fad765217302858e70fa4Paul Duffin
1110888a09821a98ac0680fad765217302858e70fa4Paul Duffinpublic void testMin_noArgs() throws Exception {
1120888a09821a98ac0680fad765217302858e70fa4Paul Duffin  com.google.common.primitives.FloatsTest testCase = new com.google.common.primitives.FloatsTest();
1130888a09821a98ac0680fad765217302858e70fa4Paul Duffin  testCase.testMin_noArgs();
1140888a09821a98ac0680fad765217302858e70fa4Paul Duffin}
1150888a09821a98ac0680fad765217302858e70fa4Paul Duffin
1160888a09821a98ac0680fad765217302858e70fa4Paul Duffinpublic void testStringConverter_convertError() throws Exception {
1170888a09821a98ac0680fad765217302858e70fa4Paul Duffin  com.google.common.primitives.FloatsTest testCase = new com.google.common.primitives.FloatsTest();
1180888a09821a98ac0680fad765217302858e70fa4Paul Duffin  testCase.testStringConverter_convertError();
1190888a09821a98ac0680fad765217302858e70fa4Paul Duffin}
1200888a09821a98ac0680fad765217302858e70fa4Paul Duffin
1210888a09821a98ac0680fad765217302858e70fa4Paul Duffinpublic void testStringConverter_nullConversions() throws Exception {
1220888a09821a98ac0680fad765217302858e70fa4Paul Duffin  com.google.common.primitives.FloatsTest testCase = new com.google.common.primitives.FloatsTest();
1230888a09821a98ac0680fad765217302858e70fa4Paul Duffin  testCase.testStringConverter_nullConversions();
1240888a09821a98ac0680fad765217302858e70fa4Paul Duffin}
1250888a09821a98ac0680fad765217302858e70fa4Paul Duffin
1260888a09821a98ac0680fad765217302858e70fa4Paul Duffinpublic void testToArray() throws Exception {
1270888a09821a98ac0680fad765217302858e70fa4Paul Duffin  com.google.common.primitives.FloatsTest testCase = new com.google.common.primitives.FloatsTest();
1280888a09821a98ac0680fad765217302858e70fa4Paul Duffin  testCase.testToArray();
1290888a09821a98ac0680fad765217302858e70fa4Paul Duffin}
1300888a09821a98ac0680fad765217302858e70fa4Paul Duffin
1310888a09821a98ac0680fad765217302858e70fa4Paul Duffinpublic void testToArray_threadSafe() throws Exception {
1320888a09821a98ac0680fad765217302858e70fa4Paul Duffin  com.google.common.primitives.FloatsTest testCase = new com.google.common.primitives.FloatsTest();
1330888a09821a98ac0680fad765217302858e70fa4Paul Duffin  testCase.testToArray_threadSafe();
1340888a09821a98ac0680fad765217302858e70fa4Paul Duffin}
1350888a09821a98ac0680fad765217302858e70fa4Paul Duffin
1360888a09821a98ac0680fad765217302858e70fa4Paul Duffinpublic void testToArray_withConversion() throws Exception {
1370888a09821a98ac0680fad765217302858e70fa4Paul Duffin  com.google.common.primitives.FloatsTest testCase = new com.google.common.primitives.FloatsTest();
1380888a09821a98ac0680fad765217302858e70fa4Paul Duffin  testCase.testToArray_withConversion();
1390888a09821a98ac0680fad765217302858e70fa4Paul Duffin}
1400888a09821a98ac0680fad765217302858e70fa4Paul Duffin
1410888a09821a98ac0680fad765217302858e70fa4Paul Duffinpublic void testToArray_withNull() throws Exception {
1420888a09821a98ac0680fad765217302858e70fa4Paul Duffin  com.google.common.primitives.FloatsTest testCase = new com.google.common.primitives.FloatsTest();
1430888a09821a98ac0680fad765217302858e70fa4Paul Duffin  testCase.testToArray_withNull();
1440888a09821a98ac0680fad765217302858e70fa4Paul Duffin}
1450888a09821a98ac0680fad765217302858e70fa4Paul Duffin}
146