- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for testInsert (0.05 seconds)
-
src/test/java/org/codelibs/fess/dict/stopwords/StopwordsFileTest.java
assertNotNull(result); assertNotNull(stopwordsFile.stopwordsItemList); } // Test insert method @Test public void test_insert() { loadTestData(); StopwordsItem newItem = new StopwordsItem(0, "test"); stopwordsFile.insert(newItem); // Verify the item was added boolean found = false;
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 18K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/dict/protwords/ProtwordsFileTest.java
PagingList<ProtwordsItem> list = protwordsFile.selectList(0, 3); assertEquals(3, list.size()); assertEquals("test1", list.get(0).getInput()); } @Test public void test_insert() { // Create new item for insertion ProtwordsItem newItem = new ProtwordsItem(0, "newWord"); // Insert the item protwordsFile.insert(newItem);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 21.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/dict/mapping/CharMappingFileTest.java
assertEquals(0, result5.size()); assertEquals(3, result5.getAllRecordCount()); } // Test insert method @Test public void test_insert() throws Exception { writeTestFile("a,b => c\n"); CharMappingItem newItem = new CharMappingItem(0, new String[] { "x", "y" }, "z"); charMappingFile.insert(newItem);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 18.9K bytes - Click Count (0) -
tests/upsert_test.go
package tests_test import ( "regexp" "testing" "time" "gorm.io/gorm" "gorm.io/gorm/clause" . "gorm.io/gorm/utils/tests" ) func TestUpsert(t *testing.T) { lang := Language{Code: "upsert", Name: "Upsert"} if err := DB.Clauses(clause.OnConflict{DoNothing: true}).Create(&lang).Error; err != nil { t.Fatalf("failed to upsert, got %v", err) } lang2 := Language{Code: "upsert", Name: "Upsert"}
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Tue Jul 29 11:06:13 GMT 2025 - 13.1K bytes - Click Count (0)