Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 2,564 for CREATE (0.12 sec)

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

                            HashBasedTable.<String, Integer, Character>create());
                      }
    
                      @Override
                      public Set<Cell<String, Integer, Character>> create(Object... elements) {
                        Table<String, Integer, Character> table = HashBasedTable.create();
                        for (Object element : elements) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 19 20:34:55 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/AsmBackedClassGeneratorDecoratedTest.groovy

            def finalReadOnlyBean = create(HasReadOnlyFinalProperty, Describables.of("<display name>"))
            def readOnlyBean = create(HasReadOnlyProperty, Describables.of("<display name>"))
            def readOnlyBeanWithMapping = create(HasReadOnlyProperty, Describables.of("<display name>"))
            readOnlyBeanWithMapping.conventionMapping.map("other") { "ignore" }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 22K bytes
    - Viewed (0)
  3. subprojects/core/src/test/groovy/org/gradle/api/internal/DefaultPolymorphicDomainObjectContainerTest.groovy

            when:
            container.create("fred")
    
            then:
            InvalidUserDataException e = thrown()
            e.message == "Cannot create a Person named 'fred' because this container does not support creating " +
                "elements by name alone. Please specify which subtype of Person to create. Known subtypes are: (None)"
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 10 22:34:19 UTC 2021
    - 16K bytes
    - Viewed (0)
  4. tests/upsert_test.go

    		t.Errorf("user should be created with search value")
    	}
    
    	DB.FirstOrCreate(&user3, map[string]interface{}{"name": "find or create 2"})
    	if user3.Name != "find or create 2" || user3.ID == 0 {
    		t.Errorf("user should be created with inline search value")
    	}
    
    	DB.Where(&User{Name: "find or create 3"}).Attrs("age", 44).FirstOrCreate(&user4)
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Sep 05 07:39:19 UTC 2022
    - 11.4K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/execution/taskgraph/RuleTaskCreationIntegrationTest.groovy

            failure.assertHasCause("Cannot create 'tasks.a' using creation rule 'MyPlugin#addTasks2(ModelMap<Task>, MyModel) > create(a)' as the rule 'MyPlugin#addTasks1(ModelMap<Task>, MyModel) > create(a)' is already registered to create this model element.")
        }
    
        def "cannot create tasks during config of task"() {
            given:
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Aug 18 22:50:47 UTC 2020
    - 16.9K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/ModelMapIntegrationTest.groovy

            }
            apply plugin: Rules
    
            model {
                components {
                    withType(SampleComponent).create("other", NonRegisteredComponent)
                }
            }
            """
    
            expect:
            fails "components"
            failure.assertHasCause("Cannot create an instance of type 'NonRegisteredComponent' as this type is not known. Known types: SampleComponent.")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/AsmBackedClassGeneratedManagedStateTest.groovy

            def bean = create(Bean)
    
            expect:
            !(bean instanceof Managed)
        }
    
        def doesNotMixManagedIntoAbstractClassWithFields() {
            def bean = create(AbstractBean, "value")
    
            expect:
            !(bean instanceof Managed)
        }
    
        def doesNotMixManagedIntoClassWithInheritedFields() {
            def bean = create(AbstractBeanWithInheritedFields, "value")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java

        Multiset<String> c = HashMultiset.create();
        Multiset<String> multiset = ImmutableSortedMultiset.copyOf(c);
        assertTrue(multiset.isEmpty());
      }
    
      public void testCopyOf_multiset_oneElement() {
        Multiset<String> c = HashMultiset.create(asList("a"));
        Multiset<String> multiset = ImmutableSortedMultiset.copyOf(c);
        assertEquals(HashMultiset.create(asList("a")), multiset);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/LinkedListMultimapTest.java

        return suite;
      }
    
      protected LinkedListMultimap<String, Integer> create() {
        return LinkedListMultimap.create();
      }
    
      /** Confirm that get() returns a List that doesn't implement RandomAccess. */
      public void testGetRandomAccess() {
        Multimap<String, Integer> multimap = create();
        multimap.put("foo", 1);
        multimap.put("foo", 3);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 10:16:44 UTC 2024
    - 18K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/SynchronizedNavigableMapTest.java

        create().lastEntry();
      }
    
      public void testLastKey() {
        NavigableMap<String, Integer> map = create();
        map.put("a", 1);
        map.lastKey();
      }
    
      public void testLowerEntry() {
        create().lowerEntry("a");
      }
    
      public void testLowerKey() {
        create().lowerKey("a");
      }
    
      public void testNavigableKeySet() {
        NavigableMap<String, Integer> map = create();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 12.2K bytes
    - Viewed (0)
Back to top