Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 56 for Act (0.03 seconds)

  1. src/test/java/org/codelibs/curl/CurlTest.java

            // ## Act ##
            final CurlRequest request = Curl.get(url);
    
            // ## Assert ##
            assertNotNull(request);
            assertEquals(Method.GET, request.method());
        }
    
        @Test
        public void test_PostFactoryMethod() {
            // ## Arrange ##
            final String url = "http://example.com";
    
            // ## Act ##
            final CurlRequest request = Curl.post(url);
    
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Thu Nov 20 13:34:13 GMT 2025
    - 16.3K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/curl/io/IOIntegrationTest.java

            // ## Arrange ##
            CurlRequest req = new MockCurlRequest(Curl.Method.POST, "http://dummy");
            req.threshold(0); // always create tmp file
    
            // ## Act ##
            long before = countTmpFiles();
            logger.info("Before request. Number of temp files: " + before);
            req.execute(res -> {
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 12:00:34 GMT 2026
    - 44.1K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/curl/CurlResponseTest.java

            CurlResponse response = new CurlResponse();
            response.setEncoding("UTF-8");
            response.setContentCache(new ContentCache(content.getBytes(java.nio.charset.StandardCharsets.UTF_8)));
    
            // ## Act ##
            String result = response.getContentAsString();
    
            // ## Assert ##
            assertEquals(content, result);
        }
    
        @Test
        public void test_GetContentAsString_WithDifferentEncoding() {
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 17.7K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/core/exception/SQLRuntimeExceptionTest.java

            sqlException.setNextException(sqlException2);
            sqlException2.setNextException(sqlException3);
    
            final SQLRuntimeException sqlRuntimeException = new SQLRuntimeException(sqlException);
    
            // ## Act ##
            final String message = sqlRuntimeException.getMessage();
    
            // ## Assert ##
            System.out.println(message);
            assertContains(message, "ErrorCode=7650");
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/curl/io/ContentCacheTest.java

            // ## Act ##
            byte[] result = cache.getContentAsBytes();
    
            // ## Assert ##
            assertEquals(content, new String(result, "UTF-8"));
        }
    
        @Test
        public void testGetContentAsBytes_EmptyData() throws IOException {
            // ## Arrange ##
            ContentCache cache = new ContentCache(new byte[0]);
    
            // ## Act ##
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 15.9K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/curl/CurlRequestTest.java

            // ## Act ##
            request.timeout(0, 0);
    
            // ## Assert ##
            assertEquals(0, request.connectTimeout);
            assertEquals(0, request.readTimeout);
        }
    
        @Test
        public void test_TimeoutFluentChaining() {
            // ## Arrange & Act ##
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 24.7K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java

            File file = cos.getFile(); // This sets done=true
            assertTrue(file.exists());
            file.delete();
            assertFalse(file.exists());
    
            // ## Act & Assert ##
            // close() should not throw even though the file was already deleted
            cos.close(); // done=true since getFile() was called, so cleanup is skipped
        }
    
        @Test
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 12:00:34 GMT 2026
    - 11.7K bytes
    - Click Count (0)
  8. samples/slack/src/main/java/okhttp3/slack/SlackClient.java

      /** Guarded by this. */
      private OAuthSession session;
    
      public SlackClient(SlackApi slackApi) {
        this.slackApi = slackApi;
      }
    
      /** Shows a browser URL to authorize this app to act as this user. */
      public void requestOauthSession(String scopes, String team) throws Exception {
        if (sessionFactory == null) {
          sessionFactory = new OAuthSessionFactory(slackApi);
          sessionFactory.start();
        }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat Jan 12 03:31:36 GMT 2019
    - 3.4K bytes
    - Click Count (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

        List<?> exp = copyToList(expected);
        List<?> act = copyToList(actual);
        String actString = act.toString();
    
        // Of course we could take pains to give the complete description of the
        // problem on any failure.
    
        // Yeah it's n^2.
        for (Object object : exp) {
          if (!act.remove(object)) {
            fail(
                "did not contain expected element "
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 17.2K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/mylasta/FessLastaDocTest.java

        /*
        @Test
        public void test_component() throws Exception {
            // ## Arrange ##
            String appWebPkg = ".app.web.";
            String actionSuffix = "Action";
    
            // ## Act ##
            policeStoryOfJavaClassChase((srcFile, clazz) -> {
                if (clazz.isInterface() || Modifier.isAbstract(clazz.getModifiers())) { // e.g. BaseAction
                    return;
                }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 2.3K bytes
    - Click Count (0)
Back to Top