@Test public void should_Match_Current_Path() throws IOException { underTest = new NpmFieldMatcher(FIELD_NAME, FIELD_PATH, fieldDeserializer); assertTrue(underTest.matches(parser)); }
public boolean matches(final JsonParser parser) throws IOException { String currentName = parser.getCurrentName(); return nonNull(currentName) && matchesFieldName(currentName) && matchesPath(parser); }
NpmFieldMatcher { public boolean matches(final JsonParser parser) throws IOException { String currentName = parser.getCurrentName(); return nonNull(currentName) && matchesFieldName(currentName) && matchesPath(parser); } }
NpmFieldMatcher { public boolean matches(final JsonParser parser) throws IOException { String currentName = parser.getCurrentName(); return nonNull(currentName) && matchesFieldName(currentName) && matchesPath(parser); } NpmFieldMatcher(final String fieldName, final String pathRegex, final NpmFieldDeserializer deserializer); }
NpmFieldMatcher { public boolean matches(final JsonParser parser) throws IOException { String currentName = parser.getCurrentName(); return nonNull(currentName) && matchesFieldName(currentName) && matchesPath(parser); } NpmFieldMatcher(final String fieldName, final String pathRegex, final NpmFieldDeserializer deserializer); boolean allowDeserializationOnMatched(); boolean matches(final JsonParser parser); NpmFieldDeserializer getDeserializer(); String getFieldName(); }
NpmFieldMatcher { public boolean matches(final JsonParser parser) throws IOException { String currentName = parser.getCurrentName(); return nonNull(currentName) && matchesFieldName(currentName) && matchesPath(parser); } NpmFieldMatcher(final String fieldName, final String pathRegex, final NpmFieldDeserializer deserializer); boolean allowDeserializationOnMatched(); boolean matches(final JsonParser parser); NpmFieldDeserializer getDeserializer(); String getFieldName();  }