All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sipgate.siptest.matcher.SipMatcher Maven / Gradle / Ivy

There is a newer version: 1.0.2
Show newest version
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