Skip to content
This repository has been archived by the owner on May 26, 2020. It is now read-only.

Referenced schema resolver #35

Merged
merged 2 commits into from
Jul 3, 2018
Merged

Referenced schema resolver #35

merged 2 commits into from
Jul 3, 2018

Conversation

BenNzewi
Copy link
Collaborator

No description provided.

@BenNzewi BenNzewi assigned uzairbaig and mapingo and unassigned uzairbaig and mapingo Jun 29, 2018
@BenNzewi BenNzewi requested a review from mapingo June 29, 2018 14:53
@coveralls
Copy link

coveralls commented Jun 29, 2018

Coverage Status

Coverage increased (+0.08%) to 98.795% when pulling 429bb8b on referenced-schema-resolver into 7969180 on master.

@BenNzewi BenNzewi force-pushed the referenced-schema-resolver branch 2 times, most recently from 526aa26 to 7f1e478 Compare July 2, 2018 11:09

private static final Logger LOGGER = LoggerFactory.getLogger(CatalogUpdater.class);

public void updtateRawCatalog(Map<String, String> schemaIdsToRawJsonSchemaCache, Path basePath, Collection<Path> paths) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the method arguments can be final

return ofNullable(schemaIdsToRawJsonSchemaCache.get(schemaId));
}

public void updateCatalogSchemaCache(final Path basePath, final Collection<Path> paths) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There needs to be a test for this method

public class CatalogUpdaterTest {

/*@Mock
private Logger logger;*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be removed?

@InjectMocks
private RawCatalog rawCatalog;

@InjectMocks private CatalogUpdater catalogUpdater;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

private CatalogUpdater catalogUpdater; could be on a separate line

schemaIdsToRawJsonSchemaCache.put("http://justice.gov.uk/standards/address.json", "json schema" );

rawCatalog.initialize();
Collection<Path> paths = new ArrayList<>();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

paths can be final

schemaIdsToRawJsonSchemaCache.put("http://justice.gov.uk/standards/address.json", "json schema" );

rawCatalog.initialize();
Collection<Path> paths = new ArrayList<>();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

paths can be final

schemaIdsToRawJsonSchemaCache.put("http://justice.gov.uk/standards/address.json", "json schema");

rawCatalog.initialize();
Collection<Path> paths = new ArrayList<>();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

paths can be final

@BenNzewi BenNzewi force-pushed the referenced-schema-resolver branch 2 times, most recently from 67e6970 to 7d77967 Compare July 2, 2018 13:48
@BenNzewi BenNzewi force-pushed the referenced-schema-resolver branch from 7d77967 to 48d2ae4 Compare July 2, 2018 15:42
@BenNzewi BenNzewi force-pushed the referenced-schema-resolver branch from 48d2ae4 to 429bb8b Compare July 3, 2018 08:13
@mapingo mapingo merged commit c443ece into master Jul 3, 2018
@mapingo mapingo deleted the referenced-schema-resolver branch July 3, 2018 08:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants