Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 81 - 90 of 1,418 for setUp (0.03 seconds)

  1. src/test/java/jcifs/smb/NetServerFileEntryAdapterIteratorTest.java

        @Mock
        ResourceFilter filter;
    
        @Mock
        SmbResource parent;
    
        @Mock
        SmbResourceLocator parentLocator;
    
        private CIFSContext ctx;
    
        @BeforeEach
        void setup() {
            // Use a real CIFS context to provide a working URLStreamHandler for smb:// URLs
            this.ctx = SingletonContext.getInstance();
        }
    
        private void setupParentForUrlCreation() throws CIFSException {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  2. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/skip/Skip.java

            // only transform the global setup if there is no named test
            if (testName.isBlank()) {
                ArrayNode setupNode;
                if (setupNodeParent == null) {
                    setupNodeParent = new ObjectNode(jsonNodeFactory);
                    setupNode = new ArrayNode(jsonNodeFactory);
                    setupNodeParent.set("setup", setupNode);
                }
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Thu Sep 30 16:30:48 GMT 2021
    - 4K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/smb1/com/SmbComSetInformationResponseTest.java

    public class SmbComSetInformationResponseTest {
    
        @Mock
        private Configuration mockConfig;
    
        private SmbComSetInformationResponse response;
    
        @BeforeEach
        void setUp() {
            // Setup mock configuration to avoid NPE
            when(mockConfig.getPid()).thenReturn(12345);
    
            response = new SmbComSetInformationResponse(mockConfig);
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 4.1K bytes
    - Click Count (0)
  4. .github/workflows/upgrade-to-latest-wrapper.yml

            uses: actions/checkout@v6
            with:
              ref: devprod/upgrade-to-latest-wrapper
              token: ${{ secrets.GITHUB_TOKEN }}
              fetch-depth: 0
          - name: Setup java
            uses: actions/setup-java@v5
            with:
              distribution: temurin
              java-version: 17
          - name: Update Gradle to latest nightly and push to devprod/upgrade-to-latest-wrapper
            run: |
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Nov 20 22:15:20 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseManagerTest.java

        @Mock
        private SmbFile mockFile1;
    
        @Mock
        private SmbFile mockFile2;
    
        private DirectoryLeaseManager directoryLeaseManager;
        private AutoCloseable mocks;
    
        @BeforeEach
        public void setUp() {
            mocks = MockitoAnnotations.openMocks(this);
            when(context.getConfig()).thenReturn(config);
            when(config.isDirectoryNotificationsEnabled()).thenReturn(false); // Disable for unit tests
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 01:47:47 GMT 2025
    - 15.9K bytes
    - Click Count (0)
  6. build-tools-internal/src/main/groovy/org/elasticsearch/gradle/internal/doc/SnippetsTask.groovy

        private static final String SETUP = /setup:([^ \]]+)/
        private static final String TEARDOWN = /teardown:([^ \]]+)/
        private static final String WARNING = /warning:(.+)/
        private static final String NON_JSON = /(non_json)/
        private static final String TEST_SYNTAX =
            /(?:$CATCH|$SUBSTITUTION|$SKIP_REGEX|(continued)|$SETUP|$TEARDOWN|$WARNING|(skip_shard_failures)) ?/
    
        /**
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Sep 20 10:08:26 GMT 2021
    - 17.8K bytes
    - Click Count (0)
  7. src/test/java/jcifs/smb/SmbFileTest.java

        @Mock
        private Configuration mockConfig;
    
        @Mock
        private Credentials mockCredentials;
    
        private URL url;
    
        private SmbFile smbFile;
    
        @BeforeEach
        public void setUp() throws MalformedURLException, CIFSException {
            // Mock configuration methods
            when(mockConfig.getPid()).thenReturn(1234);
            when(mockCifsContext.getConfig()).thenReturn(mockConfig);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.8K bytes
    - Click Count (0)
  8. guava-testlib/test/com/google/common/testing/TestLogHandlerTest.java

     */
    @NullUnmarked
    public class TestLogHandlerTest extends TestCase {
    
      private TestLogHandler handler;
      private final TearDownStack stack = new TearDownStack();
    
      @Override
      protected void setUp() throws Exception {
        super.setUp();
    
        handler = new TestLogHandler();
    
        // You could also apply it higher up the Logger hierarchy than this
        ExampleClassUnderTest.logger.addHandler(handler);
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:11:48 GMT 2026
    - 2.9K bytes
    - Click Count (0)
  9. .github/workflows/pre-commit.yml

              ref: ${{ github.event.pull_request.head.sha }}
              fetch-depth: 0
          - name: Set up Python
            uses: actions/setup-python@v6
            with:
              python-version-file: ".python-version"
          - name: Setup uv
            uses: astral-sh/setup-uv@v7
            with:
              cache-dependency-glob: |
                pyproject.toml
                uv.lock
          - name: Install Dependencies
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Jan 10 22:02:57 GMT 2026
    - 2.9K bytes
    - Click Count (0)
  10. src/test/java/jcifs/smb/NetServerEnumIteratorTest.java

            } else if (!pkgs.contains("jcifs")) {
                System.setProperty("java.protocol.handler.pkgs", pkgs + "|jcifs");
            }
        }
    
        @BeforeEach
        void setUp() throws Exception {
            parent = mock(SmbFile.class);
            when(parent.getLocator()).thenReturn(locator);
            when(treeHandle.getConfig()).thenReturn(config);
            when(treeHandle.acquire()).thenReturn(treeHandle);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.8K bytes
    - Click Count (0)
Back to Top