01: /*******************************************************************************
02: * Copyright (c) 2007 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: ******************************************************************************/package org.eclipse.core.tests.internal.databinding.conversion;
11:
12: import org.eclipse.core.internal.databinding.conversion.StringToNumberParser;
13:
14: /**
15: * @since 1.1
16: *
17: */
18: public class StringToNumberParserLongTest extends
19: StringToNumberParserTestHarness {
20:
21: protected boolean assertValid(Number number) {
22: return StringToNumberParser.inLongRange(number);
23: }
24:
25: /* (non-Javadoc)
26: * @see org.eclipse.core.tests.internal.databinding.conversion.StringToNumberParserTestHarness#getValidMax()
27: */
28: protected Number getValidMax() {
29: return new Long(Long.MAX_VALUE);
30: }
31:
32: /* (non-Javadoc)
33: * @see org.eclipse.core.tests.internal.databinding.conversion.StringToNumberParserTestHarness#getValidMin()
34: */
35: protected Number getValidMin() {
36: return new Long(Long.MIN_VALUE);
37: }
38: }
|