简体   繁体   English

Samba 的 Java Mock 服务器框架

[英]Java Mock server framework for Samba

I am trying to write some tests for a Samba client in Java, and need to find a framework that would create a mock Samba server.我正在尝试用 Java 为 Samba 客户端编写一些测试,并且需要找到一个可以创建模拟 Samba 服务器的框架。 Something similar to the Mock FTP Server for the FTP protocol.类似于 FTP 协议的Mock FTP Server

So far I could find only services that would mock a Samba library such as JCIFS , but not a Samba server.到目前为止,我只能找到模拟 Samba 库(例如JCIFS ,而不是 Samba 服务器。 Is there a framework available for mocking a Samba server?是否有可用于模拟 Samba 服务器的框架?

Any help or suggestion would be much appreciated.任何帮助或建议将不胜感激。

You can use junit+mockito.您可以使用 junit+mockito。 Create mock tree (file system analog) based on SmbFile-s基于 SmbFile-s 创建模拟树(文件系统模拟)

junit mockito tests for jcifs jcifs 的 junit mockito 测试

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM