
com.sipgate.siptest.matcher.SipMatcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sip-test Show documentation
Show all versions of sip-test Show documentation
Simple softphone for sip testing purposes.
package com.sipgate.siptest.matcher;
import static java.util.concurrent.TimeUnit.SECONDS;
import com.sipgate.siptest.SipgateUserAgent;
import java.util.concurrent.TimeUnit;
import org.hamcrest.Matcher;
public final class SipMatcher {
private SipMatcher() {
super();
}
public static Matcher isRegistered() {
return new IsRegistered(10, SECONDS);
}
public static Matcher receivesRemoteRinging() {
return new RemoteRinging(10, SECONDS);
}
public static Matcher receivesRemoteRingingWithin(int value, TimeUnit unit) {
return new RemoteRinging(value, unit);
}
public static Matcher receivesRemotePickup() {
return new RemotePickup(10, SECONDS);
}
public static Matcher receivesRemotePickupWithin(int value, TimeUnit unit) {
return new RemotePickup(value, unit);
}
public static Matcher hasCalled(String number) {
return new HasCalled(10, SECONDS, number);
}
public static Matcher receivesRemoteHangup(int value, TimeUnit unit) {
return new RemoteHangup(value, unit);
}
public static Matcher receivesRemoteHangup() {
return new RemoteHangup(10, SECONDS);
}
public static Matcher sessionTerminated(int value, TimeUnit unit) {
return new SessionTerminated(value, unit);
}
public static Matcher sessionTerminated() {
return new SessionTerminated(10, SECONDS);
}
public static Matcher receivesIncomingCall() {
return new IncomingCall(10, SECONDS);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy