Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1021 - 1030 of 1,336 for setups (0.04 sec)

  1. src/test/java/jcifs/internal/smb1/com/SmbComRenameTest.java

    public class SmbComRenameTest {
    
        private Configuration config;
        private SmbComRename smbComRename;
    
        @Mock
        private Configuration mockConfig;
    
        @BeforeEach
        public void setUp() throws CIFSException {
            MockitoAnnotations.openMocks(this);
            config = new PropertyConfiguration(new Properties());
        }
    
        /**
         * Test constructor initialization with valid parameters
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java

    import jcifs.internal.util.SMBUtil;
    
    /**
     * Unit tests for FileNotifyInformationImpl class
     */
    class FileNotifyInformationImplTest {
    
        private FileNotifyInformationImpl notifyInfo;
    
        @BeforeEach
        void setUp() {
            notifyInfo = new FileNotifyInformationImpl();
        }
    
        @Test
        @DisplayName("Test default constructor creates instance with null values")
        void testDefaultConstructor() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/netbios/SessionRequestPacketTest.java

        @Mock
        private Configuration mockConfig;
    
        @Mock
        private NetbiosName mockCalledName;
    
        @Mock
        private NetbiosName mockCallingName;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
            when(mockConfig.getNetbiosScope()).thenReturn(null);
            // Configure OEM encoding to avoid NullPointerException
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/http/HandlerTest.java

    @ExtendWith(MockitoExtension.class)
    class HandlerTest {
    
        @Mock
        private CIFSContext mockCifsContext;
    
        private Handler handler;
    
        private Properties originalSystemProperties;
    
        @BeforeEach
        void setUp() throws Exception {
            // Backup system properties to restore them after each test
            originalSystemProperties = (Properties) System.getProperties().clone();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/util/ServerResponseValidatorTest.java

    import jcifs.smb.SmbException;
    
    /**
     * Test cases for ServerResponseValidator
     */
    public class ServerResponseValidatorTest {
    
        private ServerResponseValidator validator;
    
        @BeforeEach
        public void setUp() {
            validator = new ServerResponseValidator();
        }
    
        @Test
        public void testValidBuffer() throws Exception {
            byte[] buffer = new byte[1024];
            validator.validateBuffer(buffer, 100, 2048);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbCopyUtilTest.java

            verify(dest, times(1)).openUnshared(anyInt(), anyInt(), anyInt(), anyInt(), anyInt());
        }
    
        // --- WriterThread behavior ---
    
        @Test
        @DisplayName("WriterThread writes provided buffer and stops on -1")
        void writerThread_writes_and_stops() throws Exception {
            // Arrange
            WriterThread w = new WriterThread();
            SmbFileOutputStream out = mock(SmbFileOutputStream.class);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/ioctl/SrvCopyChunkCopyResponseTest.java

    import jcifs.internal.util.SMBUtil;
    
    @ExtendWith(MockitoExtension.class)
    class SrvCopyChunkCopyResponseTest {
    
        private SrvCopyChunkCopyResponse response;
    
        @BeforeEach
        void setUp() {
            response = new SrvCopyChunkCopyResponse();
        }
    
        @Nested
        @DisplayName("Constructor Tests")
        class ConstructorTests {
    
            @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/config/BaseConfigurationTest.java

    import jcifs.ResolverType;
    import jcifs.SmbConstants;
    
    /**
     * Test class for BaseConfiguration
     */
    class BaseConfigurationTest {
    
        private BaseConfiguration config;
    
        @BeforeEach
        void setUp() throws CIFSException {
            config = new BaseConfiguration(false);
        }
    
        @Test
        @DisplayName("Test constructor with initDefaults true")
        void testConstructorWithInitDefaults() throws CIFSException {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/netbios/SessionServicePacketTest.java

    import org.mockito.MockitoAnnotations;
    
    class SessionServicePacketTest {
    
        private TestSessionServicePacket packet;
    
        @Mock
        private InputStream mockInputStream;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
            packet = new TestSessionServicePacket();
        }
    
        // Tests for static methods
    
        @Test
        @DisplayName("writeInt2 should correctly write 16-bit integer")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  10. compat/maven-model-builder/src/test/java/org/apache/maven/model/interpolation/AbstractModelInterpolatorTest.java

    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    /**
     */
    @Deprecated
    public abstract class AbstractModelInterpolatorTest {
        private Properties context;
    
        @BeforeEach
        public void setUp() {
            context = new Properties();
            context.put("basedir", "myBasedir");
            context.put("project.baseUri", "myBaseUri");
        }
    
        protected void assertProblemFree(SimpleProblemCollector collector) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sun Mar 30 23:08:36 UTC 2025
    - 18.2K bytes
    - Viewed (0)
Back to top