Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion block-kit/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>3.0.0</version>
<version>3.2.0</version>
<configuration>
<formats>
<format>
Expand Down
6 changes: 2 additions & 4 deletions block-kit/src/test/java/blocks/ActionsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ public class ActionsTest {
public void testExample01() {
ActionsBlock block = Actions.example01();
String actual = GsonFactory.createSnakeCase().toJson(block);
String expected =
"""
String expected = """
{
"type": "actions",
"block_id": "actions1",
Expand Down Expand Up @@ -75,8 +74,7 @@ public void testExample01() {
public void testExample02() {
ActionsBlock block = Actions.example02();
String actual = GsonFactory.createSnakeCase().toJson(block);
String expected =
"""
String expected = """
{
"type": "actions",
"block_id": "actionblock789",
Expand Down
3 changes: 1 addition & 2 deletions block-kit/src/test/java/blocks/ContextTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ public class ContextTest {
public void testExample01() {
ContextBlock block = Context.example01();
String actual = GsonFactory.createSnakeCase().toJson(block);
String expected =
"""
String expected = """
{
"type": "context",
"elements": [
Expand Down
3 changes: 1 addition & 2 deletions block-kit/src/test/java/blocks/FileTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ public class FileTest {
public void testExample01() {
FileBlock block = File.example01();
String actual = GsonFactory.createSnakeCase().toJson(block);
String expected =
"""
String expected = """
{
"type": "file",
"external_id": "ABCD1",
Expand Down
3 changes: 1 addition & 2 deletions block-kit/src/test/java/blocks/HeaderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ public class HeaderTest {
public void testExample01() {
HeaderBlock block = Header.example01();
String actual = GsonFactory.createSnakeCase().toJson(block);
String expected =
"""
String expected = """
{
"type": "header",
"text": {
Expand Down
9 changes: 3 additions & 6 deletions block-kit/src/test/java/blocks/ImageTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ public class ImageTest {
public void testExample01() {
ImageBlock block = Image.example01();
String actual = GsonFactory.createSnakeCase().toJson(block);
String expected =
"""
String expected = """
{
"type": "image",
"title": {
Expand All @@ -32,8 +31,7 @@ public void testExample01() {
public void testExample02() {
ImageBlock block = Image.example02();
String actual = GsonFactory.createSnakeCase().toJson(block);
String expected =
"""
String expected = """
{
"type": "image",
"title": {
Expand All @@ -54,8 +52,7 @@ public void testExample02() {
public void testExample03() {
ImageBlock block = Image.example03();
String actual = GsonFactory.createSnakeCase().toJson(block);
String expected =
"""
String expected = """
{
"type": "image",
"title": {
Expand Down
3 changes: 1 addition & 2 deletions block-kit/src/test/java/blocks/InputTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ public class InputTest {
public void testExample01() {
InputBlock block = Input.example01();
String actual = GsonFactory.createSnakeCase().toJson(block);
String expected =
"""
String expected = """
{
"type": "input",
"element": {
Expand Down
3 changes: 1 addition & 2 deletions block-kit/src/test/java/blocks/MarkdownTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ public class MarkdownTest {
public void testExample01() {
MarkdownBlock block = Markdown.example01();
String actual = GsonFactory.createSnakeCase().toJson(block);
String expected =
"""
String expected = """
{
"type": "markdown",
"text": "**Lots of information here!!**"
Expand Down
39 changes: 13 additions & 26 deletions block-kit/src/test/java/blocks/RichTextTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ public class RichTextTest {
public void testExample01() {
java.util.List<RichTextBlock> blocks = RichText.example01();
String actual = GsonFactory.createSnakeCase().toJson(blocks);
String expected =
"""
String expected = """
[
{
"type": "rich_text",
Expand Down Expand Up @@ -122,8 +121,7 @@ public void testExample01() {
public void testExample02() {
RichTextBlock block = RichText.example02();
String actual = GsonFactory.createSnakeCase().toJson(block);
String expected =
"""
String expected = """
{
"type": "rich_text",
"block_id": "block1",
Expand Down Expand Up @@ -182,8 +180,7 @@ public void testExample02() {
public void testExample03() {
RichTextBlock block = RichText.example03();
String actual = GsonFactory.createSnakeCase().toJson(block);
String expected =
"""
String expected = """
{
"type": "rich_text",
"block_id": "block1",
Expand Down Expand Up @@ -271,8 +268,7 @@ public void testExample03() {
public void testExample04() {
RichTextBlock block = RichText.example04();
String actual = GsonFactory.createSnakeCase().toJson(block);
String expected =
"""
String expected = """
{
"type": "rich_text",
"elements": [
Expand All @@ -296,8 +292,7 @@ public void testExample04() {
public void testExample05() {
RichTextBlock block = RichText.example05();
String actual = GsonFactory.createSnakeCase().toJson(block);
String expected =
"""
String expected = """
{
"type": "rich_text",
"block_id": "Vrzsu",
Expand Down Expand Up @@ -330,8 +325,7 @@ public void testExample05() {
public void testExample06() {
RichTextBlock block = RichText.example06();
String actual = GsonFactory.createSnakeCase().toJson(block);
String expected =
"""
String expected = """
{
"type": "rich_text",
"elements": [
Expand All @@ -354,8 +348,7 @@ public void testExample06() {
public void testExample07() {
RichTextBlock block = RichText.example07();
String actual = GsonFactory.createSnakeCase().toJson(block);
String expected =
"""
String expected = """
{
"type": "rich_text",
"elements": [
Expand All @@ -378,8 +371,7 @@ public void testExample07() {
public void testExample08() {
RichTextBlock block = RichText.example08();
String actual = GsonFactory.createSnakeCase().toJson(block);
String expected =
"""
String expected = """
{
"type": "rich_text",
"elements": [
Expand All @@ -402,8 +394,7 @@ public void testExample08() {
public void testExample09() {
RichTextBlock block = RichText.example09();
String actual = GsonFactory.createSnakeCase().toJson(block);
String expected =
"""
String expected = """
{
"type": "rich_text",
"elements": [
Expand All @@ -428,8 +419,7 @@ public void testExample09() {
public void testExample10() {
RichTextBlock block = RichText.example10();
String actual = GsonFactory.createSnakeCase().toJson(block);
String expected =
"""
String expected = """
{
"type": "rich_text",
"elements": [
Expand Down Expand Up @@ -468,8 +458,7 @@ public void testExample10() {
public void testExample11() {
RichTextBlock block = RichText.example11();
String actual = GsonFactory.createSnakeCase().toJson(block);
String expected =
"""
String expected = """
{
"type": "rich_text",
"elements": [
Expand All @@ -492,8 +481,7 @@ public void testExample11() {
public void testExample12() {
RichTextBlock block = RichText.example12();
String actual = GsonFactory.createSnakeCase().toJson(block);
String expected =
"""
String expected = """
{
"type": "rich_text",
"elements": [
Expand All @@ -516,8 +504,7 @@ public void testExample12() {
public void testExample13() {
RichTextBlock block = RichText.example13();
String actual = GsonFactory.createSnakeCase().toJson(block);
String expected =
"""
String expected = """
{
"type": "rich_text",
"elements": [
Expand Down
9 changes: 3 additions & 6 deletions block-kit/src/test/java/blocks/SectionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ public class SectionTest {
public void testExample01() {
SectionBlock block = Section.example01();
String actual = GsonFactory.createSnakeCase().toJson(block);
String expected =
"""
String expected = """
{
"type": "section",
"text": {
Expand All @@ -29,8 +28,7 @@ public void testExample01() {
public void testExample02() {
SectionBlock block = Section.example02();
String actual = GsonFactory.createSnakeCase().toJson(block);
String expected =
"""
String expected = """
{
"type": "section",
"text": {
Expand All @@ -57,8 +55,7 @@ public void testExample02() {
public void testExample03() {
SectionBlock block = Section.example03();
String actual = GsonFactory.createSnakeCase().toJson(block);
String expected =
"""
String expected = """
{
"type": "section",
"text": {
Expand Down
3 changes: 1 addition & 2 deletions block-kit/src/test/java/blocks/VideoTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ public class VideoTest {
public void testExample01() {
VideoBlock block = Video.example01();
String actual = GsonFactory.createSnakeCase().toJson(block);
String expected =
"""
String expected = """
{
"type": "video",
"title": {
Expand Down