Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for testSET (0.22 sec)

  1. guava-tests/test/com/google/common/collect/CountTest.java

      }
    
      public void testGetAndSet() {
        Count holder = new Count(10);
        assertEquals(10, holder.getAndSet(20));
        assertEquals(20, holder.get());
      }
    
      public void testSet() {
        Count holder = new Count(10);
        holder.set(20);
        assertEquals(20, holder.get());
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 19 20:34:55 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/ListSetTester.java

    public class ListSetTester<E> extends AbstractListTester<E> {
      @ListFeature.Require(SUPPORTS_SET)
      @CollectionSize.Require(absent = ZERO)
      public void testSet() {
        doTestSet(e3());
      }
    
      @CollectionSize.Require(absent = ZERO)
      @CollectionFeature.Require(ALLOWS_NULL_VALUES)
      @ListFeature.Require(SUPPORTS_SET)
      public void testSet_null() {
        doTestSet(null);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  3. maven-core/src/test/java/org/apache/maven/lifecycle/mapping/LifecyclePhaseTest.java

            mojo2.setGoal("war:war");
            phase.setMojos(Arrays.asList(mojo1, mojo2));
            assertEquals("jar:jar,war:war", phase.toString());
        }
    
        @Test
        void testSet() {
            LifecyclePhase phase = new LifecyclePhase();
            assertNull(phase.getMojos());
    
            phase.set("");
            assertNotNull(phase.getMojos());
            assertEquals(0, phase.getMojos().size());
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 08:39:32 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/lang/FieldUtilTest.java

            assertThat(FieldUtil.getString(field), is(STRING_DATA));
        }
    
        /**
         * @throws Exception
         */
        @Test(expected = ClIllegalArgumentException.class)
        public void testSet() throws Exception {
            final Field field = getClass().getField("intField");
            FieldUtil.set(field, this, "abc");
        }
    
        /**
         * @throws Exception
         */
        @Test
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  5. pkg/util/smallset/smallset_test.go

    package smallset_test
    
    import (
    	"fmt"
    	"testing"
    
    	"istio.io/istio/pkg/test/util/assert"
    	"istio.io/istio/pkg/util/sets"
    	"istio.io/istio/pkg/util/smallset"
    )
    
    func TestSet(t *testing.T) {
    	elements := []string{"d", "b", "a", "d"}
    	set := smallset.New(elements...)
    
    	assert.Equal(t, set.Len(), 3)
    	assert.Equal(t, set.List(), []string{"a", "b", "d"})
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 4K bytes
    - Viewed (0)
  6. pkg/proxy/ipvs/ipset/ipset_test.go

    	}
    	// Success
    	err = runner.DestroyAllSets()
    	if err != nil {
    		t.Errorf("Unexpected failure: %v", err)
    	}
    }
    
    func TestCreateSet(t *testing.T) {
    	testSet := IPSet{
    		Name:       "FOOBAR",
    		SetType:    HashIPPort,
    		HashFamily: ProtocolFamilyIPV4,
    	}
    
    	fcmd := fakeexec.FakeCmd{
    		CombinedOutputScript: []fakeexec.FakeAction{
    			// Success
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 41.5K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/ListSetTester.java

    public class ListSetTester<E> extends AbstractListTester<E> {
      @ListFeature.Require(SUPPORTS_SET)
      @CollectionSize.Require(absent = ZERO)
      public void testSet() {
        doTestSet(e3());
      }
    
      @CollectionSize.Require(absent = ZERO)
      @CollectionFeature.Require(ALLOWS_NULL_VALUES)
      @ListFeature.Require(SUPPORTS_SET)
      public void testSet_null() {
        doTestSet(null);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/util/sets/set_generic_test.go

    limitations under the License.
    */
    
    package sets_test
    
    import (
    	"reflect"
    	"testing"
    
    	"k8s.io/apimachinery/pkg/util/sets"
    )
    
    func TestSet(t *testing.T) {
    	s := sets.Set[string]{}
    	s2 := sets.Set[string]{}
    	if len(s) != 0 {
    		t.Errorf("Expected len=0: %d", len(s))
    	}
    	s.Insert("a", "b")
    	if len(s) != 2 {
    		t.Errorf("Expected len=2: %d", len(s))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 10 09:03:44 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/collection/SLinkedListTest.java

            list.addLast("2");
            list.addLast("3");
            assertThat(SerializeUtil.serialize(list), is(notNullValue()));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testSet() throws Exception {
            list.addLast("1");
            list.addLast("2");
            list.addLast("3");
            list.set(1, "4");
            assertThat(list.get(1), is("4"));
        }
    
        /**
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/lang/GenericsUtilTest.java

            assertThat(WildcardType.class.isInstance(GenericsUtil.getElementTypeOfList(t3)), is(true));
        }
    
        /**
         * @throws Exception
         */
        public void testSet() throws Exception {
            final Method m1 = SetType.class.getMethod("setOfString");
            final Type t1 = m1.getGenericReturnType();
            assertThat(GenericsUtil.isTypeOf(t1, Set.class), is(true));
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 11.5K bytes
    - Viewed (0)
Back to top