Search Options

Results per page
Sort
Preferred Languages
Advance

Results 461 - 470 of 860 for setMap (0.04 sec)

  1. android/guava-tests/benchmark/com/google/common/base/AsciiBenchmark.java

      int size;
    
      @Param({"2", "20"})
      int nonAlphaRatio; // one non-alpha char per this many chars
    
      @Param boolean noWorkToDo;
    
      Random random;
      String testString;
    
      @BeforeExperiment
      void setUp() {
        random = new Random(0xdeadbeef); // fix the seed so results are comparable across runs
    
        int nonAlpha = size / nonAlphaRatio;
        int alpha = size - nonAlpha;
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java

      @Param({"0", "1", "16", "32", "100"})
      int componentLength;
    
      private Iterable<String> components;
    
      @BeforeExperiment
      @SuppressWarnings("InlineMeInliner") // String.repeat unavailable under Java 8
      void setUp() {
        String component = Strings.repeat("a", componentLength);
        String[] raw = new String[count];
        Arrays.fill(raw, component);
        components = Arrays.asList(raw);
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 27 16:19:35 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/MutableClassToInstanceMapTest.java

                    MapFeature.ALLOWS_ANY_NULL_QUERIES)
                .createTestSuite());
    
        return suite;
      }
    
      private ClassToInstanceMap<Number> map;
    
      @Override
      protected void setUp() throws Exception {
        map = MutableClassToInstanceMap.create();
      }
    
      public void testConstraint() {
        /*
         * We'll give ourselves a pass on testing all the possible ways of breaking the constraint,
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java

      private ClassLoader oldClassLoader;
      private URLClassLoader classReloader;
      private Class<?> settableFutureClass;
      private Class<?> abstractFutureClass;
    
      @Override
      protected void setUp() throws Exception {
        // Load the "normal" copy of SettableFuture and related classes.
        SettableFuture<?> unused = SettableFuture.create();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/DosFileFilterTest.java

    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    
    public class DosFileFilterTest {
    
        private DosFileFilter filter;
    
        @BeforeEach
        public void setup() {
            filter = new DosFileFilter("*", SmbFile.ATTR_NORMAL);
        }
    
        @Test
        public void testAcceptReturnsTrueWhenAttributesMatch() throws Exception {
            SmbFile file = mock(SmbFile.class);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/SmbComNegotiateTest.java

     * Tests for the SmbComNegotiate class.
     */
    class SmbComNegotiateTest {
    
        private SmbComNegotiate smbComNegotiate;
        private static final String DIALECTS = "\u0002NT LM 0.12\u0000";
    
        @BeforeEach
        void setUp() {
            // Create a new instance before each test
            smbComNegotiate = new SmbComNegotiate();
        }
    
        /**
         * Test the constructor of SmbComNegotiate.
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4K bytes
    - Viewed (0)
  7. guava-tests/benchmark/com/google/common/cache/LoadingCacheSingleThreadBenchmark.java

      LoadingCache<Integer, Integer> cache;
    
      int max;
    
      static AtomicLong requests = new AtomicLong(0);
      static AtomicLong misses = new AtomicLong(0);
    
      @BeforeExperiment
      void setUp() {
        // random integers will be generated in this range, then raised to the
        // power of (1/concentration) and floor()ed
        max = Ints.checkedCast((long) Math.pow(distinctKeys, concentration));
    
        cache =
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java

        class PreauthIntegrityNegotiateContextTests {
    
            private PreauthIntegrityNegotiateContext context;
            private byte[] buffer;
    
            @BeforeEach
            void setUp() {
                buffer = new byte[BUFFER_SIZE];
            }
    
            @Test
            @DisplayName("Should create context with constructor parameters")
            void testConstructorWithParameters() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/Kerb5ContextTest.java

        private Kerb5Context ctx;
        private MockedStatic<GSSManager> mockedStatic;
    
        @BeforeEach
        void setUp() throws Exception {
            // Mock the static GSSManager.getInstance() method
            mockedStatic = mockStatic(GSSManager.class);
            mockedStatic.when(GSSManager::getInstance).thenReturn(gssManager);
    
            // Setup mock behavior for GSSManager with lenient matchers
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/http/NtlmHttpFilterTest.java

        @Mock
        private HttpSession httpSession;
    
        @Mock
        private ServletOutputStream servletOutputStream;
    
        @BeforeEach
        void setUp() throws Exception {
            filter = new NtlmHttpFilter();
    
            // Setup lenient stubs for common mock interactions
            lenient().when(request.getSession()).thenReturn(httpSession);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
Back to top