Home | History | Annotate | Download | only in matchers
      1 /*
      2  * Copyright (c) 2007 Mockito contributors
      3  * This program is made available under the terms of the MIT License.
      4  */
      5 package org.mockito.internal.matchers;
      6 
      7 import org.mockito.ArgumentMatcher;
      8 import org.mockito.internal.debugging.LocationImpl;
      9 import org.mockito.invocation.Location;
     10 
     11 @SuppressWarnings("unchecked")
     12 public class LocalizedMatcher {
     13 
     14     private final ArgumentMatcher<?> matcher;
     15     private final Location location;
     16 
     17     public LocalizedMatcher(ArgumentMatcher<?> matcher) {
     18         this.matcher = matcher;
     19         this.location = new LocationImpl();
     20     }
     21 
     22     public Location getLocation() {
     23         return location;
     24     }
     25 
     26     public ArgumentMatcher<?> getMatcher() {
     27         return matcher;
     28     }
     29 }
     30