1 /* 2 * Copyright (C) 2008 The Guava Authors 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package com.google.common.math; 17 public class LongMathTest_gwt extends com.google.gwt.junit.client.GWTTestCase { getModuleName()18@Override public String getModuleName() { 19 return "com.google.common.math.testModule"; 20 } testBinomial()21public void testBinomial() throws Exception { 22 com.google.common.math.LongMathTest testCase = new com.google.common.math.LongMathTest(); 23 testCase.testBinomial(); 24 } 25 testBinomialNegative()26public void testBinomialNegative() throws Exception { 27 com.google.common.math.LongMathTest testCase = new com.google.common.math.LongMathTest(); 28 testCase.testBinomialNegative(); 29 } 30 testBinomialOutside()31public void testBinomialOutside() throws Exception { 32 com.google.common.math.LongMathTest testCase = new com.google.common.math.LongMathTest(); 33 testCase.testBinomialOutside(); 34 } 35 testCeilingPowerOfTwo()36public void testCeilingPowerOfTwo() throws Exception { 37 com.google.common.math.LongMathTest testCase = new com.google.common.math.LongMathTest(); 38 testCase.testCeilingPowerOfTwo(); 39 } 40 testCeilingPowerOfTwoNegative()41public void testCeilingPowerOfTwoNegative() throws Exception { 42 com.google.common.math.LongMathTest testCase = new com.google.common.math.LongMathTest(); 43 testCase.testCeilingPowerOfTwoNegative(); 44 } 45 testCeilingPowerOfTwoZero()46public void testCeilingPowerOfTwoZero() throws Exception { 47 com.google.common.math.LongMathTest testCase = new com.google.common.math.LongMathTest(); 48 testCase.testCeilingPowerOfTwoZero(); 49 } 50 testCheckedMultiply()51public void testCheckedMultiply() throws Exception { 52 com.google.common.math.LongMathTest testCase = new com.google.common.math.LongMathTest(); 53 testCase.testCheckedMultiply(); 54 } 55 testFloorPowerOfTwo()56public void testFloorPowerOfTwo() throws Exception { 57 com.google.common.math.LongMathTest testCase = new com.google.common.math.LongMathTest(); 58 testCase.testFloorPowerOfTwo(); 59 } 60 testFloorPowerOfTwoNegative()61public void testFloorPowerOfTwoNegative() throws Exception { 62 com.google.common.math.LongMathTest testCase = new com.google.common.math.LongMathTest(); 63 testCase.testFloorPowerOfTwoNegative(); 64 } 65 testFloorPowerOfTwoZero()66public void testFloorPowerOfTwoZero() throws Exception { 67 com.google.common.math.LongMathTest testCase = new com.google.common.math.LongMathTest(); 68 testCase.testFloorPowerOfTwoZero(); 69 } 70 testGCDExhaustive()71public void testGCDExhaustive() throws Exception { 72 com.google.common.math.LongMathTest testCase = new com.google.common.math.LongMathTest(); 73 testCase.testGCDExhaustive(); 74 } 75 testLessThanBranchFree()76public void testLessThanBranchFree() throws Exception { 77 com.google.common.math.LongMathTest testCase = new com.google.common.math.LongMathTest(); 78 testCase.testLessThanBranchFree(); 79 } 80 testLog2Exact()81public void testLog2Exact() throws Exception { 82 com.google.common.math.LongMathTest testCase = new com.google.common.math.LongMathTest(); 83 testCase.testLog2Exact(); 84 } 85 testLog2MatchesBigInteger()86public void testLog2MatchesBigInteger() throws Exception { 87 com.google.common.math.LongMathTest testCase = new com.google.common.math.LongMathTest(); 88 testCase.testLog2MatchesBigInteger(); 89 } 90 testLog2NegativeAlwaysThrows()91public void testLog2NegativeAlwaysThrows() throws Exception { 92 com.google.common.math.LongMathTest testCase = new com.google.common.math.LongMathTest(); 93 testCase.testLog2NegativeAlwaysThrows(); 94 } 95 testLog2ZeroAlwaysThrows()96public void testLog2ZeroAlwaysThrows() throws Exception { 97 com.google.common.math.LongMathTest testCase = new com.google.common.math.LongMathTest(); 98 testCase.testLog2ZeroAlwaysThrows(); 99 } 100 testMaxSignedPowerOfTwo()101public void testMaxSignedPowerOfTwo() throws Exception { 102 com.google.common.math.LongMathTest testCase = new com.google.common.math.LongMathTest(); 103 testCase.testMaxSignedPowerOfTwo(); 104 } 105 testSqrtOfLongIsAtMostFloorSqrtMaxLong()106public void testSqrtOfLongIsAtMostFloorSqrtMaxLong() throws Exception { 107 com.google.common.math.LongMathTest testCase = new com.google.common.math.LongMathTest(); 108 testCase.testSqrtOfLongIsAtMostFloorSqrtMaxLong(); 109 } 110 } 111