Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for New3 (0.02 seconds)

  1. tests/hooks_test.go

    	}
    
    	// Code changed, price should changed
    	DB.Model(&product).Select("Name", "Code", "Price").Updates(map[string]interface{}{"Name": "Product New3", "code": "L1213"})
    
    	if product.Name != "Product New3" || product.Price != 220 || product.Code != "L1213" {
    		t.Errorf("invalid data after update, got %+v", product)
    	}
    
    	var result Product3
    	DB.First(&result, product.ID)
    
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Mon Jun 17 03:59:06 GMT 2024
    - 16.7K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/dict/mapping/CharMappingItemTest.java

            CharMappingItem item = new CharMappingItem(1L, inputs, "oldOutput");
    
            item.setNewInputs(new String[] { "new1", "new2", "new3" });
            item.setNewOutput("newOutput");
    
            // Should use new values when updated
            assertEquals("new1,new2,new3=>newOutput", item.toLineString());
        }
    
        @Test
        public void test_toLineString_withSingleInput() {
            String[] inputs = { "single" };
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 16K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/dict/stopwords/StopwordsFileTest.java

            }
        }
    
        // Test update with InputStream
        @Test
        public void test_update_withInputStream() throws IOException {
            String content = "new1\n" + "new2\n" + "new3\n";
    
            InputStream is = new ByteArrayInputStream(content.getBytes(StandardCharsets.UTF_8));
            stopwordsFile.update(is);
    
            assertEquals(3, stopwordsFile.stopwordsItemList.size());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 18K bytes
    - Click Count (0)
Back to Top