Package edu.umass.pql.container

Source Code of edu.umass.pql.container.PSetTest

/***************************************************************************
Copyright (C) 2009 Google, Inc.
               2011 Christoph Reichenbach <creichen@gmail.com>

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public Licence as
published by the Free Software Foundaton; either version 3 of the
Licence, or (at your option) any later version.

It is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
merchantability or fitness for a particular purpose. See the
GNU General Public Licence for more details.

You should have received a copy of the GNU General Public Licence
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.

***************************************************************************/

package edu.umass.pql.container;

import java.util.*;
import junit.framework.*;
import com.google.common.collect.testing.SetTestSuiteBuilder;
import com.google.common.collect.testing.TestStringSetGenerator;
import com.google.common.collect.testing.MinimalCollection;
import com.google.common.collect.testing.features.SetFeature;
import com.google.common.collect.testing.features.CollectionSize;

public final class PSetTest
{
  public static TestSuite
  suite()
  {
    return SetTestSuiteBuilder
      .using(new TestStringSetGenerator() {
          @Override public Set<String> create(String[] elements) {
            return new PSet<String>(MinimalCollection.of(elements));
          }
        })
      .named("PSet")
      .withFeatures(
              SetFeature.GENERAL_PURPOSE,
              CollectionSize.ANY)
      .createTestSuite();
  }
}
TOP

Related Classes of edu.umass.pql.container.PSetTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.