forked from randoop/randoop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
55 additions
and
14 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
agent/replacecall/src/main/java/randoop/grt_mock/javax/mail/Service.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package randoop.grt_mock.javax.mail; | ||
|
||
import javax.mail.MessagingException; | ||
|
||
public abstract class Service extends javax.mail.Service { | ||
|
||
public Service(javax.mail.Session session, javax.mail.URLName urlname) { | ||
super(session, urlname); | ||
} | ||
|
||
@Override | ||
public synchronized void connect() throws MessagingException { | ||
throw new MessagingException("Network operations are disabled during testing."); | ||
} | ||
|
||
@Override | ||
public synchronized void connect(String host, String user, String password) throws MessagingException { | ||
throw new MessagingException("Network operations are disabled during testing."); | ||
} | ||
|
||
@Override | ||
public synchronized void connect(String host, int port, String user, String password) throws MessagingException { | ||
throw new MessagingException("Network operations are disabled during testing."); | ||
} | ||
|
||
// Implement other connect methods as needed | ||
} |
16 changes: 16 additions & 0 deletions
16
...n/java/randoop/grt_mock/jcommander_1_35/com/beust/jcommander/internal/DefaultConsole.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package randoop.grt_mock.jcommander_1_35.com.beust.jcommander.internal; | ||
|
||
public class DefaultConsole { | ||
|
||
/** | ||
* Mock of com.beust.jcommander.internal.DefaultConsole.readPassword(boolean). | ||
* This method does nothing and returns an empty char array. | ||
* | ||
* @param instance The instance of DefaultConsole (ignored). | ||
* @param echoInput The echoInput parameter (ignored). | ||
* @return An empty char array. | ||
*/ | ||
public static char[] readPassword(com.beust.jcommander.internal.Console instance, boolean echoInput) { | ||
return new char[0]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters