// Path: commons-ip-math/src/main/java/com/github/jgonian/ipmath/Ipv6.java
// public static final Ipv6 FIRST_IPV6_ADDRESS = Ipv6.of(MINIMUM_VALUE);
// 
// Path: commons-ip-math/src/main/java/com/github/jgonian/ipmath/Ipv6.java
// public static final Ipv6 LAST_IPV6_ADDRESS = Ipv6.of(MAXIMUM_VALUE);


import static com.github.jgonian.ipmath.Ipv6.FIRST_IPV6_ADDRESS;
import static com.github.jgonian.ipmath.Ipv6.LAST_IPV6_ADDRESS;
import static java.math.BigInteger.ONE;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
 * The MIT License (MIT)
 *
 * Copyright (c) 2011-2017, Yannis Gonianakis
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
package com.github.jgonian.ipmath;




public class Ipv6RangeTest extends AbstractRangeTest<Ipv6, Ipv6Range> {

    Ipv6 ip1 = Ipv6.of("::1");
    Ipv6 ip2 = Ipv6.of("::2");
    Ipv6 ip3 = Ipv6.of("::3");

    @Override
    protected Ipv6 from(String s) {
        return Ipv6.of(BigInteger.valueOf(Long.parseLong(s)));
    }

    @Override
    protected Ipv6 to(String s) {
        return Ipv6.of(BigInteger.valueOf(Long.parseLong(s)));
    }

    @Override
    protected Ipv6 item(String s) {
        return Ipv6.of(BigInteger.valueOf(Long.parseLong(s)));
    }

    @Override
    protected Ipv6Range getTestRange(Ipv6 start, Ipv6 end) {
        return new Ipv6Range(start, end);
    }

    @Override
    protected Ipv6Range getFullRange() {
// Path: commons-ip-math/src/main/java/com/github/jgonian/ipmath/Ipv6.java
// public static final Ipv6 FIRST_IPV6_ADDRESS = Ipv6.of(MINIMUM_VALUE);
// 
// Path: commons-ip-math/src/main/java/com/github/jgonian/ipmath/Ipv6.java
// public static final Ipv6 LAST_IPV6_ADDRESS = Ipv6.of(MAXIMUM_VALUE);


// Path: commons-ip-math/src/test/java/com/github/jgonian/ipmath/Ipv6RangeTest.java
import static com.github.jgonian.ipmath.Ipv6.FIRST_IPV6_ADDRESS;
import static com.github.jgonian.ipmath.Ipv6.LAST_IPV6_ADDRESS;
import static java.math.BigInteger.ONE;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * The MIT License (MIT)
 *
 * Copyright (c) 2011-2017, Yannis Gonianakis
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
package com.github.jgonian.ipmath;




public class Ipv6RangeTest extends AbstractRangeTest<Ipv6, Ipv6Range> {

    Ipv6 ip1 = Ipv6.of("::1");
    Ipv6 ip2 = Ipv6.of("::2");
    Ipv6 ip3 = Ipv6.of("::3");

    @Override
    protected Ipv6 from(String s) {
        return Ipv6.of(BigInteger.valueOf(Long.parseLong(s)));
    }

    @Override
    protected Ipv6 to(String s) {
        return Ipv6.of(BigInteger.valueOf(Long.parseLong(s)));
    }

    @Override
    protected Ipv6 item(String s) {
        return Ipv6.of(BigInteger.valueOf(Long.parseLong(s)));
    }

    @Override
    protected Ipv6Range getTestRange(Ipv6 start, Ipv6 end) {
        return new Ipv6Range(start, end);
    }

    @Override
    protected Ipv6Range getFullRange() {
        return new Ipv6Range(FIRST_IPV6_ADDRESS, LAST_IPV6_ADDRESS);