Skip to content

Commit

Permalink
feat: update group name
Browse files Browse the repository at this point in the history
  • Loading branch information
goatfryed committed Sep 10, 2024
1 parent 96d5152 commit 63a7833
Show file tree
Hide file tree
Showing 44 changed files with 110 additions and 110 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
id 'maven-publish'
}

group = "com.github.goatfryed"
group = "io.github.goatfryed"
version = "1.0.0-alpha1-SNAPSHOT"

repositories {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.goatfryed.assert_baseline;
package io.github.goatfryed.assert_baseline;

public interface BaselineAssertion<SELF> {
SELF isEqualToBaseline(String baselinePath);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.github.goatfryed.assert_baseline;
package io.github.goatfryed.assert_baseline;

import com.github.goatfryed.assert_baseline.json.JsonBaselineAssertion;
import com.github.goatfryed.assert_baseline.text.TextBaselineAssertion;
import com.github.goatfryed.assert_baseline.xml.XmlBaselineAssertion;
import io.github.goatfryed.assert_baseline.json.JsonBaselineAssertion;
import io.github.goatfryed.assert_baseline.text.TextBaselineAssertion;
import io.github.goatfryed.assert_baseline.xml.XmlBaselineAssertion;

public class BaselineAssertions {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.goatfryed.assert_baseline;
package io.github.goatfryed.assert_baseline;

import java.io.IOException;
import java.io.OutputStream;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
package com.github.goatfryed.assert_baseline.core;
package io.github.goatfryed.assert_baseline.core;

import com.github.goatfryed.assert_baseline.BaselineAssertion;
import com.github.goatfryed.assert_baseline.core.convention.ConventionLocator;
import io.github.goatfryed.assert_baseline.BaselineAssertion;
import io.github.goatfryed.assert_baseline.core.convention.ConventionLocator;
import org.assertj.core.api.AbstractAssert;

import java.nio.file.Path;
import java.util.function.Function;

abstract public class AbstractBaselineAssertion<SELF extends AbstractBaselineAssertion<SELF>>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package com.github.goatfryed.assert_baseline.core;
package io.github.goatfryed.assert_baseline.core;

import com.github.goatfryed.assert_baseline.core.storage.StoredValue;
import io.github.goatfryed.assert_baseline.core.storage.StoredValue;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.StringUtils;
import org.assertj.core.description.Description;
import org.assertj.core.description.JoinDescription;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.github.goatfryed.assert_baseline.core;
package io.github.goatfryed.assert_baseline.core;

import com.github.goatfryed.assert_baseline.core.storage.*;
import io.github.goatfryed.assert_baseline.core.storage.*;

import java.util.function.Function;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.goatfryed.assert_baseline.core;
package io.github.goatfryed.assert_baseline.core;

import java.util.function.Function;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.github.goatfryed.assert_baseline.core.convention;
package io.github.goatfryed.assert_baseline.core.convention;

import com.github.goatfryed.assert_baseline.core.BaselineContext;
import com.github.goatfryed.assert_baseline.core.BaselineContextFactory;
import io.github.goatfryed.assert_baseline.core.BaselineContext;
import io.github.goatfryed.assert_baseline.core.BaselineContextFactory;

public interface BaselineConvention {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.goatfryed.assert_baseline.core.convention;
package io.github.goatfryed.assert_baseline.core.convention;

public interface BaselineConventionProvider {
BaselineConvention getConvention();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
package com.github.goatfryed.assert_baseline.core.convention;
package io.github.goatfryed.assert_baseline.core.convention;

import com.github.goatfryed.assert_baseline.core.BaselineContextFactory;
import io.github.goatfryed.assert_baseline.core.BaselineContextFactory;
import com.github.goatfryed.assert_baseline.core.storage.*;
import io.github.goatfryed.assert_baseline.core.storage.ConfigurableStorageConfigurer;
import io.github.goatfryed.assert_baseline.core.storage.StorageConfig;
import io.github.goatfryed.assert_baseline.core.storage.StorageConfigValidator;
import io.github.goatfryed.assert_baseline.core.storage.StoredValueStrategy;

import java.util.function.Function;

import static com.github.goatfryed.assert_baseline.core.convention.ConventionSupport.actualAsSibling;
import static com.github.goatfryed.assert_baseline.core.storage.StorageConfigUtils.baselineAsRequested;
import static io.github.goatfryed.assert_baseline.core.convention.ConventionSupport.actualAsSibling;
import static io.github.goatfryed.assert_baseline.core.storage.StorageConfigUtils.baselineAsRequested;

public class ConventionBuilder {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
package com.github.goatfryed.assert_baseline.core.convention;
package io.github.goatfryed.assert_baseline.core.convention;

import com.github.goatfryed.assert_baseline.core.BaselineContextFactory;
import io.github.goatfryed.assert_baseline.core.BaselineContextFactory;
import com.github.goatfryed.assert_baseline.core.storage.*;

import java.nio.file.Path;
import java.util.function.Function;
import java.util.function.Supplier;

public class ConventionImpl implements BaselineConvention {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.github.goatfryed.assert_baseline.core.convention;
package io.github.goatfryed.assert_baseline.core.convention;

import com.github.goatfryed.assert_baseline.core.convention.presets.StandardConventionProvider;
import io.github.goatfryed.assert_baseline.core.convention.presets.StandardConventionProvider;

import java.util.ServiceLoader;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.github.goatfryed.assert_baseline.core.convention;
package io.github.goatfryed.assert_baseline.core.convention;

import com.github.goatfryed.assert_baseline.core.storage.ConfigurableStorageConfigurer;
import com.github.goatfryed.assert_baseline.core.storage.StorageConfig;
import com.github.goatfryed.assert_baseline.core.storage.StorageConfigUtils;
import io.github.goatfryed.assert_baseline.core.storage.ConfigurableStorageConfigurer;
import io.github.goatfryed.assert_baseline.core.storage.StorageConfig;
import io.github.goatfryed.assert_baseline.core.storage.StorageConfigUtils;

import java.nio.file.Path;
import java.util.function.UnaryOperator;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.github.goatfryed.assert_baseline.core.convention;
package io.github.goatfryed.assert_baseline.core.convention;

import com.github.goatfryed.assert_baseline.core.storage.FileValue;
import com.github.goatfryed.assert_baseline.core.storage.StorageConfig;
import com.github.goatfryed.assert_baseline.core.storage.StoredValue;
import com.github.goatfryed.assert_baseline.core.storage.StoredValueStrategy;
import io.github.goatfryed.assert_baseline.core.storage.FileValue;
import io.github.goatfryed.assert_baseline.core.storage.StorageConfig;
import io.github.goatfryed.assert_baseline.core.storage.StoredValue;
import io.github.goatfryed.assert_baseline.core.storage.StoredValueStrategy;

import java.nio.file.Path;
import java.util.function.Function;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package io.github.goatfryed.assert_baseline.core.convention.presets;

import io.github.goatfryed.assert_baseline.core.convention.BaselineConvention;
import io.github.goatfryed.assert_baseline.core.convention.BaselineConventionProvider;
import io.github.goatfryed.assert_baseline.core.convention.ConventionSupport;

import static io.github.goatfryed.assert_baseline.core.convention.ConventionBuilder.builderWithDefaults;
import static io.github.goatfryed.assert_baseline.core.convention.ConventionSupport.locateBaselinesAndInferContextPath;

public class StandardConventionProvider implements BaselineConventionProvider {
@Override
public BaselineConvention getConvention() {
return builderWithDefaults()
.storing(locateBaselinesAndInferContextPath())
.withConfigValidator(ConventionSupport::validateDifferentPaths)
.build()
;
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.goatfryed.assert_baseline.core.storage;
package io.github.goatfryed.assert_baseline.core.storage;

import java.nio.file.Path;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.goatfryed.assert_baseline.core.storage;
package io.github.goatfryed.assert_baseline.core.storage;

import java.nio.file.Path;
import java.util.Objects;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.goatfryed.assert_baseline.core.storage;
package io.github.goatfryed.assert_baseline.core.storage;

import org.assertj.core.description.Description;
import org.assertj.core.description.TextDescription;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.goatfryed.assert_baseline.core.storage;
package io.github.goatfryed.assert_baseline.core.storage;

import org.assertj.core.description.Description;
import org.assertj.core.description.TextDescription;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.goatfryed.assert_baseline.core.storage;
package io.github.goatfryed.assert_baseline.core.storage;

import java.nio.file.Path;
import java.util.Optional;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.goatfryed.assert_baseline.core.storage;
package io.github.goatfryed.assert_baseline.core.storage;

import java.nio.file.Path;
import java.util.Objects;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.goatfryed.assert_baseline.core.storage;
package io.github.goatfryed.assert_baseline.core.storage;

import org.apache.commons.io.FilenameUtils;
import org.apache.commons.lang3.StringUtils;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.goatfryed.assert_baseline.core.storage;
package io.github.goatfryed.assert_baseline.core.storage;

public interface StorageConfigValidator {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.goatfryed.assert_baseline.core.storage;
package io.github.goatfryed.assert_baseline.core.storage;

public interface StorageConfigurer {
StorageConfig createConfig(String requestedKey);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.goatfryed.assert_baseline.core.storage;
package io.github.goatfryed.assert_baseline.core.storage;

import org.assertj.core.description.Description;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.goatfryed.assert_baseline.core.storage;
package io.github.goatfryed.assert_baseline.core.storage;

import java.util.function.Function;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.github.goatfryed.assert_baseline.json;
package io.github.goatfryed.assert_baseline.json;

import com.github.goatfryed.assert_baseline.core.AbstractBaselineAssertion;
import com.github.goatfryed.assert_baseline.core.BaselineContext;
import com.github.goatfryed.assert_baseline.SerializableSubject;
import io.github.goatfryed.assert_baseline.core.AbstractBaselineAssertion;
import io.github.goatfryed.assert_baseline.core.BaselineContext;
import io.github.goatfryed.assert_baseline.SerializableSubject;
import net.javacrumbs.jsonunit.assertj.JsonAssert;
import net.javacrumbs.jsonunit.core.Configuration;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.github.goatfryed.assert_baseline.text;
package io.github.goatfryed.assert_baseline.text;

import com.github.goatfryed.assert_baseline.core.AbstractBaselineAssertion;
import com.github.goatfryed.assert_baseline.core.BaselineContext;
import com.github.goatfryed.assert_baseline.SerializableSubject;
import io.github.goatfryed.assert_baseline.core.AbstractBaselineAssertion;
import io.github.goatfryed.assert_baseline.core.BaselineContext;
import io.github.goatfryed.assert_baseline.SerializableSubject;
import net.javacrumbs.jsonunit.core.Configuration;
import org.assertj.core.api.AbstractStringAssert;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.goatfryed.assert_baseline.xml;
package io.github.goatfryed.assert_baseline.xml;

import org.w3c.dom.Document;
import org.w3c.dom.Node;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.github.goatfryed.assert_baseline.xml;
package io.github.goatfryed.assert_baseline.xml;

import com.github.goatfryed.assert_baseline.core.AbstractBaselineAssertion;
import com.github.goatfryed.assert_baseline.core.BaselineContext;
import com.github.goatfryed.assert_baseline.SerializableSubject;
import io.github.goatfryed.assert_baseline.core.AbstractBaselineAssertion;
import io.github.goatfryed.assert_baseline.core.BaselineContext;
import io.github.goatfryed.assert_baseline.SerializableSubject;
import org.xmlunit.assertj.CompareAssert;
import org.xmlunit.assertj.XmlAssert;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.goatfryed.assert_baseline.xml;
package io.github.goatfryed.assert_baseline.xml;

import org.w3c.dom.Node;
import org.xmlunit.diff.NodeFilters;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.github.goatfryed.assert_baseline;
package io.github.goatfryed.assert_baseline;

import com.github.goatfryed.assert_baseline.core.convention.presets.StandardConventionProvider;
import io.github.goatfryed.assert_baseline.core.convention.presets.StandardConventionProvider;
import org.junit.jupiter.api.Test;

import static org.assertj.core.api.Assertions.assertThatCode;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package com.github.goatfryed.assert_baseline.convention;
package io.github.goatfryed.assert_baseline.convention;

import com.github.goatfryed.assert_baseline.core.BaselineContext;
import com.github.goatfryed.assert_baseline.core.convention.ConventionSupport;
import com.github.goatfryed.assert_baseline.core.convention.presets.StandardConventionProvider;
import com.github.goatfryed.assert_baseline.core.storage.FileValue;
import io.github.goatfryed.assert_baseline.core.BaselineContext;
import io.github.goatfryed.assert_baseline.core.convention.presets.StandardConventionProvider;
import io.github.goatfryed.assert_baseline.core.storage.FileValue;
import org.assertj.core.api.InstanceOfAssertFactories;
import org.junit.jupiter.api.Test;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.goatfryed.assert_baseline.json;
package io.github.goatfryed.assert_baseline.json;

import org.apache.commons.io.FileUtils;
import org.junit.jupiter.api.BeforeEach;
Expand All @@ -8,7 +8,7 @@
import java.nio.charset.StandardCharsets;
import java.nio.file.Path;

import static com.github.goatfryed.assert_baseline.BaselineAssertions.assertThatJson;
import static io.github.goatfryed.assert_baseline.BaselineAssertions.assertThatJson;
import static org.assertj.core.api.AssertionsForClassTypes.assertThatCode;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.goatfryed.assert_baseline.xml;
package io.github.goatfryed.assert_baseline.xml;

import org.apache.commons.io.FileUtils;
import org.junit.jupiter.api.BeforeEach;
Expand All @@ -8,8 +8,8 @@
import java.nio.charset.StandardCharsets;
import java.nio.file.Path;

import static com.github.goatfryed.assert_baseline.BaselineAssertions.assertThatXml;
import static com.github.goatfryed.assert_baseline.xml.XmlDiffConfiguration.ignoringXPath;
import static io.github.goatfryed.assert_baseline.BaselineAssertions.assertThatXml;
import static io.github.goatfryed.assert_baseline.xml.XmlDiffConfiguration.ignoringXPath;
import static org.assertj.core.api.AssertionsForClassTypes.assertThatCode;
import static org.junit.jupiter.api.Assertions.*;

Expand Down
6 changes: 3 additions & 3 deletions src/testRecipes/java/SiblingLayoutTest.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import com.github.goatfryed.assert_baseline.core.convention.ConventionBuilder;
import io.github.goatfryed.assert_baseline.core.convention.ConventionBuilder;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

import static com.github.goatfryed.assert_baseline.BaselineAssertions.assertThatText;
import static com.github.goatfryed.assert_baseline.core.storage.StorageConfigUtils.inContextPath;
import static io.github.goatfryed.assert_baseline.BaselineAssertions.assertThatText;
import static io.github.goatfryed.assert_baseline.core.storage.StorageConfigUtils.inContextPath;
import static support.Assertions.assertBaselineUsed;
import static support.Assertions.assertActualFile;
import static support.TestConventionProvider.testWithConvention;
Expand Down
6 changes: 3 additions & 3 deletions src/testRecipes/java/support/TestConventionProvider.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package support;

import com.github.goatfryed.assert_baseline.core.BaselineContextFactory;
import com.github.goatfryed.assert_baseline.core.convention.BaselineConvention;
import com.github.goatfryed.assert_baseline.core.convention.BaselineConventionProvider;
import io.github.goatfryed.assert_baseline.core.BaselineContextFactory;
import io.github.goatfryed.assert_baseline.core.convention.BaselineConvention;
import io.github.goatfryed.assert_baseline.core.convention.BaselineConventionProvider;

public class TestConventionProvider implements BaselineConventionProvider {

Expand Down
Loading

0 comments on commit 63a7833

Please sign in to comment.