diff --git a/block-kit/pom.xml b/block-kit/pom.xml index 5823527..c928544 100644 --- a/block-kit/pom.xml +++ b/block-kit/pom.xml @@ -22,7 +22,7 @@ com.diffplug.spotless spotless-maven-plugin - 3.0.0 + 3.2.0 diff --git a/block-kit/src/test/java/blocks/ActionsTest.java b/block-kit/src/test/java/blocks/ActionsTest.java index 46f7dca..fee8052 100644 --- a/block-kit/src/test/java/blocks/ActionsTest.java +++ b/block-kit/src/test/java/blocks/ActionsTest.java @@ -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", @@ -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", diff --git a/block-kit/src/test/java/blocks/ContextTest.java b/block-kit/src/test/java/blocks/ContextTest.java index a237e82..636ac23 100644 --- a/block-kit/src/test/java/blocks/ContextTest.java +++ b/block-kit/src/test/java/blocks/ContextTest.java @@ -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": [ diff --git a/block-kit/src/test/java/blocks/FileTest.java b/block-kit/src/test/java/blocks/FileTest.java index 910d7e5..19b6d27 100644 --- a/block-kit/src/test/java/blocks/FileTest.java +++ b/block-kit/src/test/java/blocks/FileTest.java @@ -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", diff --git a/block-kit/src/test/java/blocks/HeaderTest.java b/block-kit/src/test/java/blocks/HeaderTest.java index 45f9da1..843a835 100644 --- a/block-kit/src/test/java/blocks/HeaderTest.java +++ b/block-kit/src/test/java/blocks/HeaderTest.java @@ -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": { diff --git a/block-kit/src/test/java/blocks/ImageTest.java b/block-kit/src/test/java/blocks/ImageTest.java index 8f53847..83dc756 100644 --- a/block-kit/src/test/java/blocks/ImageTest.java +++ b/block-kit/src/test/java/blocks/ImageTest.java @@ -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": { @@ -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": { @@ -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": { diff --git a/block-kit/src/test/java/blocks/InputTest.java b/block-kit/src/test/java/blocks/InputTest.java index db8d6bc..8d7f450 100644 --- a/block-kit/src/test/java/blocks/InputTest.java +++ b/block-kit/src/test/java/blocks/InputTest.java @@ -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": { diff --git a/block-kit/src/test/java/blocks/MarkdownTest.java b/block-kit/src/test/java/blocks/MarkdownTest.java index 3b1fed8..678c0c9 100644 --- a/block-kit/src/test/java/blocks/MarkdownTest.java +++ b/block-kit/src/test/java/blocks/MarkdownTest.java @@ -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!!**" diff --git a/block-kit/src/test/java/blocks/RichTextTest.java b/block-kit/src/test/java/blocks/RichTextTest.java index 67b1726..c67af51 100644 --- a/block-kit/src/test/java/blocks/RichTextTest.java +++ b/block-kit/src/test/java/blocks/RichTextTest.java @@ -12,8 +12,7 @@ public class RichTextTest { public void testExample01() { java.util.List blocks = RichText.example01(); String actual = GsonFactory.createSnakeCase().toJson(blocks); - String expected = - """ + String expected = """ [ { "type": "rich_text", @@ -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", @@ -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", @@ -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": [ @@ -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", @@ -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": [ @@ -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": [ @@ -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": [ @@ -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": [ @@ -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": [ @@ -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": [ @@ -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": [ @@ -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": [ diff --git a/block-kit/src/test/java/blocks/SectionTest.java b/block-kit/src/test/java/blocks/SectionTest.java index 15042e2..8814b7e 100644 --- a/block-kit/src/test/java/blocks/SectionTest.java +++ b/block-kit/src/test/java/blocks/SectionTest.java @@ -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": { @@ -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": { @@ -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": { diff --git a/block-kit/src/test/java/blocks/VideoTest.java b/block-kit/src/test/java/blocks/VideoTest.java index bcbf2cc..36de64f 100644 --- a/block-kit/src/test/java/blocks/VideoTest.java +++ b/block-kit/src/test/java/blocks/VideoTest.java @@ -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": {