Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 4,823 for assertEquals (0.82 sec)

  1. src/test/java/com/alibaba/json/bvt/date/DateFieldTest9.java

            calendar.setTime(vo.date);
            Assert.assertEquals(2016, calendar.get(Calendar.YEAR));
            Assert.assertEquals(4, calendar.get(Calendar.MONTH));
            Assert.assertEquals(6, calendar.get(Calendar.DAY_OF_MONTH));
            Assert.assertEquals(0, calendar.get(Calendar.HOUR_OF_DAY));
            Assert.assertEquals(0, calendar.get(Calendar.MINUTE));
            Assert.assertEquals(0, calendar.get(Calendar.SECOND));
    Java
    - Registered: 2023-02-08 01:53
    - Last Modified: 2016-05-17 14:23
    - 9K bytes
    - Viewed (0)
  2. js/compatibility_tests/v3.0.0/proto3_test.js

        var msg = new proto.jspb.test.TestProto3();
    
        assertEquals(msg.getOptionalInt32(), 0);
        assertEquals(msg.getOptionalInt64(), 0);
        assertEquals(msg.getOptionalUint32(), 0);
        assertEquals(msg.getOptionalUint64(), 0);
        assertEquals(msg.getOptionalSint32(), 0);
        assertEquals(msg.getOptionalSint64(), 0);
        assertEquals(msg.getOptionalFixed32(), 0);
        assertEquals(msg.getOptionalFixed64(), 0);
    JavaScript
    - Registered: 2023-02-08 06:16
    - Last Modified: 2019-08-23 00:33
    - 13.4K bytes
    - Viewed (0)
  3. core/src/test/java/com/alibaba/druid/bvt/pool/basic/TestDataSourceBasic2.java

            assertEquals(0, dataSource.getLoginTimeout());
            dataSource.setLoginTimeout(30);
            assertEquals(30, dataSource.getLoginTimeout());
    
            assertEquals(null, dataSource.getUsername());
            dataSource.setUsername("ljw");
            assertEquals("ljw", dataSource.getUsername());
    
            assertEquals(null, dataSource.getPassword());
            dataSource.setPassword("xxx");
    Java
    - Registered: 2023-01-30 07:39
    - Last Modified: 2022-09-12 01:19
    - 5K bytes
    - Viewed (0)
  4. java/core/src/test/java/com/google/protobuf/TestBadIdentifiers.java

        // Make sure generated accessors are properly named.
        assertEquals(0, message.getInt32Field1Count());
        assertEquals(0, message.getEnumField2Count());
        assertEquals(0, message.getStringField3Count());
        assertEquals(0, message.getBytesField4Count());
        assertEquals(0, message.getMessageField5Count());
    
        assertEquals(0, message.getInt32FieldCount11());
        assertEquals(0, message.getEnumFieldCount12().getNumber());
    Java
    - Registered: 2023-02-08 06:16
    - Last Modified: 2021-03-22 20:05
    - 5.3K bytes
    - Viewed (0)
  5. core/src/test/java/com/alibaba/druid/bvt/pool/TestIdle.java

            {
                Assert.assertEquals(0, dataSource.getCreateCount());
                Assert.assertEquals(0, dataSource.getActiveCount());
    
                Connection conn = dataSource.getConnection();
    
                Assert.assertEquals(dataSource.getInitialSize(), dataSource.getCreateCount());
                Assert.assertEquals(dataSource.getInitialSize(), driver.getConnections().size());
    Java
    - Registered: 2023-01-30 07:39
    - Last Modified: 2022-09-12 01:19
    - 5.6K bytes
    - Viewed (0)
  6. core/src/test/java/com/alibaba/druid/bvt/sql/mysql/grant/MySqlGrantTest_35.java

            assertEquals(1, statementList.size());
    
            MySqlSchemaStatVisitor visitor = new MySqlSchemaStatVisitor();
            stmt.accept(visitor);
    
            String output = SQLUtils.toMySqlString(stmt);
            assertEquals("GRANT CREATE ON * TO 'hello'@'%';", //
                    output);
    
            assertEquals(0, visitor.getTables().size());
            assertEquals(0, visitor.getColumns().size());
    Java
    - Registered: 2023-01-30 07:39
    - Last Modified: 2022-09-12 01:19
    - 6.7K bytes
    - Viewed (0)
  7. core/src/test/java/com/alibaba/druid/bvt/support/http/UserAgentTest.java

            Assert.assertEquals(0, stat.getBrowserOperaCount());
            Assert.assertEquals(0, stat.getBrowserSafariCount());
    
            Assert.assertEquals(0, stat.getDeviceAndroidCount());
            Assert.assertEquals(0, stat.getDeviceIpadCount());
            Assert.assertEquals(0, stat.getDeviceIphoneCount());
            Assert.assertEquals(0, stat.getDeviceWindowsPhoneCount());
    
    Java
    - Registered: 2022-12-12 07:39
    - Last Modified: 2022-09-12 01:19
    - 41.2K bytes
    - Viewed (0)
  8. src/test/java/com/alibaba/json/bvt/parser/JSONScannerTest_ISO8601.java

            Assert.assertEquals(false, new...
    Java
    - Registered: 2023-01-11 01:53
    - Last Modified: 2020-05-09 02:05
    - 10K bytes
    - Viewed (0)
  9. core/src/test/java/com/alibaba/druid/bvt/support/http/UserAgentAndroid_4_0_4_Test.java

            Assert.assertEquals(0, stat.getDeviceIphoneCount());
            Assert.assertEquals(0, stat.getDeviceWindowsPhoneCount());
    
            Assert.assertEquals(1, stat.getOSLinuxCount());
            Assert.assertEquals(1, stat.getOSAndroidCount());
            Assert.assertEquals(1, stat.getOSAndroid40Count());
            Assert.assertEquals(0, stat.getOSLinuxUbuntuCount());
            Assert.assertEquals(0, stat.getOSMacOSXCount());
    Java
    - Registered: 2022-12-12 07:39
    - Last Modified: 2022-09-12 01:19
    - 2.2K bytes
    - Viewed (0)
  10. core/src/test/java/com/alibaba/druid/bvt/pool/DruidPooledPreparedStatementTest.java

                Assert.assertEquals(0, stmt.getFetchSize());
                Assert.assertEquals(0, stmt.getFetchDirection());
                Assert.assertEquals(0, stmt.getMaxRows());
                Assert.assertEquals(0, stmt.getMaxFieldSize());
                Assert.assertEquals(0, stmt.getQueryTimeout());
                Assert.assertEquals(sql, stmt.getSql());
    
                stmt.setFetchSize(1);
    Java
    - Registered: 2023-01-30 07:39
    - Last Modified: 2022-09-12 01:19
    - 2.8K bytes
    - Viewed (0)
Back to top