/* * Copyright 2014 Goldman Sachs. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.gs.collections.impl.list.immutable; import com.gs.collections.api.list.ImmutableList; import org.junit.Test; public class ImmutableSingletonListTest extends AbstractImmutableListTestCase { @Override protected ImmutableList<Integer> classUnderTest() { return new ImmutableSingletonList<>(1); } @Test @Override public void min_null_throws() { // Collections with one element should not throw to emulate the JDK Collections behavior super.min_null_throws(); } @Test @Override public void max_null_throws() { // Collections with one element should not throw to emulate the JDK Collections behavior super.max_null_throws(); } @Test @Override public void min_null_throws_without_comparator() { // Collections with one element should not throw to emulate the JDK Collections behavior super.min_null_throws_without_comparator(); } @Test @Override public void max_null_throws_without_comparator() { // Collections with one element should not throw to emulate the JDK Collections behavior super.max_null_throws_without_comparator(); } }