Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for test_parse (0.07 sec)

  1. src/test/java/org/codelibs/fess/util/PrunedTagTest.java

            assertEquals("PrunedTag [tag=" + tag + ", id=" + id + ", css=" + css + ", attrName=" + attrName + ", attrValue=" + attrValue + "]",
                    prunedtag.toString());
        }
    
        public void test_parse() {
            PrunedTag[] tags = PrunedTag.parse("");
            assertEquals(0, tags.length);
    
            tags = PrunedTag.parse("a");
            assertEquals(1, tags.length);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/util/KuromojiCSVUtilTest.java

    import static org.hamcrest.Matchers.is;
    
    import java.util.Arrays;
    import java.util.List;
    
    import org.codelibs.fess.unit.UnitFessTestCase;
    
    public class KuromojiCSVUtilTest extends UnitFessTestCase {
        public void test_parse() {
            String value;
            List<String> expected;
            List<String> actual;
    
            value = "フェス";
            expected = Arrays.asList("フェス");
            actual = Arrays.asList(KuromojiCSVUtil.parse(value));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/util/GsaConfigParserTest.java

        @Override
        public void setUp() throws Exception {
            super.setUp();
            ComponentUtil.register(new SystemHelper(), "systemHelper");
        }
    
        public void test_parse() throws IOException {
            GsaConfigParser parser = new GsaConfigParser();
            try (InputStream is = ResourceUtil.getResourceAsStream("data/gsaconfig.xml")) {
                parser.parse(new InputSource(is));
            }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/PdfExtractorTest.java

        }
    
        public void test_getText_pass() {
            final InputStream in = ResourceUtil.getResourceAsStream("extractor/test_pass.pdf");
            final Map<String, String> params = new HashMap<String, String>();
            params.put(ExtractData.URL, "http://example.com/test_pass.pdf");
            final String content = pdfExtractorForPdfPassword.getText(in, params).getContent();
            CloseableUtil.closeQuietly(in);
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/RobotsTxtHelperTest.java

            StandardCrawlerContainer container = new StandardCrawlerContainer().singleton("robotsTxtHelper", RobotsTxtHelper.class);
            robotsTxtHelper = container.getComponent("robotsTxtHelper");
        }
    
        public void testParse() {
            RobotsTxt robotsTxt;
            final InputStream in = RobotsTxtHelperTest.class.getResourceAsStream("robots.txt");
            try {
                robotsTxt = robotsTxtHelper.parse(in);
            } finally {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  6. internal/arn/arn_test.go

    				return
    			}
    			if !reflect.DeepEqual(got, tt.want) {
    				t.Errorf("NewIAMRoleARN() got = %v, want %v", got, tt.want)
    			}
    		})
    	}
    }
    
    func TestParse(t *testing.T) {
    	type args struct {
    		arnStr string
    	}
    	tests := []struct {
    		name    string
    		args    args
    		wantArn ARN
    		wantErr bool
    	}{
    		{
    			name: "valid ARN must succeed",
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Apr 04 08:31:34 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/MediaTypeTest.kt

      protected open fun assertInvalid(
        string: String,
        exceptionMessage: String?,
      ) {
        assertNull(string.toMediaTypeOrNull(), exceptionMessage)
      }
    
      @Test fun testParse() {
        val mediaType = parse("text/plain;boundary=foo;charset=utf-8")
        assertEquals("text", mediaType.type)
        assertEquals("plain", mediaType.subtype)
        assertEquals("UTF-8", mediaType.charsetName())
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  8. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/TikaExtractorTest.java

        // InputStream in =
        // ResourceUtil.getResourceAsStream("extractor/test_pass.pdf");
        // TikaExtractor extractor =
        // (TikaExtractor) getContainer().getComponent(
        // "tikaExtractorForPdfPassword");
        // Map<String, String> params = new HashMap<String, String>();
        // params.put(ExtractData.URL, "http://example.com/test_pass.pdf");
        // ExtractData extractData = extractor.getText(in, params);
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 30.5K bytes
    - Viewed (0)
Back to top