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

org.xpertss.proximo.matchers.Matches Maven / Gradle / Ivy

Go to download

Proximo provides a simple declarative means for creating proxies and stubbing method behavior overrides.

The newest version!
/**
 * Copyright 2015 XpertSoftware
 * 

* Created By: cfloersch * Date: 6/3/2015 */ package org.xpertss.proximo.matchers; import xpertss.proximo.Matcher; import java.io.Serializable; public class Matches implements Matcher, Serializable { private static final long serialVersionUID = 8787704593379472029L; private final String regex; public Matches(String regex) { this.regex = regex; } public boolean matches(Object actual) { return (actual instanceof String) && ((String) actual).matches(regex); } @Override public int specificity() { return VALUE_SPECIFICITY; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy