Skip to content

Commit da350a7

Browse files
committed
style: lint
1 parent 6aa71ad commit da350a7

10 files changed

Lines changed: 27 additions & 54 deletions

File tree

block-kit/src/test/java/blocks/ActionsTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ public class ActionsTest {
1212
public void testExample01() {
1313
ActionsBlock block = Actions.example01();
1414
String actual = GsonFactory.createSnakeCase().toJson(block);
15-
String expected =
16-
"""
15+
String expected = """
1716
{
1817
"type": "actions",
1918
"block_id": "actions1",
@@ -75,8 +74,7 @@ public void testExample01() {
7574
public void testExample02() {
7675
ActionsBlock block = Actions.example02();
7776
String actual = GsonFactory.createSnakeCase().toJson(block);
78-
String expected =
79-
"""
77+
String expected = """
8078
{
8179
"type": "actions",
8280
"block_id": "actionblock789",

block-kit/src/test/java/blocks/ContextTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ public class ContextTest {
1212
public void testExample01() {
1313
ContextBlock block = Context.example01();
1414
String actual = GsonFactory.createSnakeCase().toJson(block);
15-
String expected =
16-
"""
15+
String expected = """
1716
{
1817
"type": "context",
1918
"elements": [

block-kit/src/test/java/blocks/FileTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ public class FileTest {
1212
public void testExample01() {
1313
FileBlock block = File.example01();
1414
String actual = GsonFactory.createSnakeCase().toJson(block);
15-
String expected =
16-
"""
15+
String expected = """
1716
{
1817
"type": "file",
1918
"external_id": "ABCD1",

block-kit/src/test/java/blocks/HeaderTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ public class HeaderTest {
1212
public void testExample01() {
1313
HeaderBlock block = Header.example01();
1414
String actual = GsonFactory.createSnakeCase().toJson(block);
15-
String expected =
16-
"""
15+
String expected = """
1716
{
1817
"type": "header",
1918
"text": {

block-kit/src/test/java/blocks/ImageTest.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ public class ImageTest {
1212
public void testExample01() {
1313
ImageBlock block = Image.example01();
1414
String actual = GsonFactory.createSnakeCase().toJson(block);
15-
String expected =
16-
"""
15+
String expected = """
1716
{
1817
"type": "image",
1918
"title": {
@@ -32,8 +31,7 @@ public void testExample01() {
3231
public void testExample02() {
3332
ImageBlock block = Image.example02();
3433
String actual = GsonFactory.createSnakeCase().toJson(block);
35-
String expected =
36-
"""
34+
String expected = """
3735
{
3836
"type": "image",
3937
"title": {
@@ -54,8 +52,7 @@ public void testExample02() {
5452
public void testExample03() {
5553
ImageBlock block = Image.example03();
5654
String actual = GsonFactory.createSnakeCase().toJson(block);
57-
String expected =
58-
"""
55+
String expected = """
5956
{
6057
"type": "image",
6158
"title": {

block-kit/src/test/java/blocks/InputTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ public class InputTest {
1212
public void testExample01() {
1313
InputBlock block = Input.example01();
1414
String actual = GsonFactory.createSnakeCase().toJson(block);
15-
String expected =
16-
"""
15+
String expected = """
1716
{
1817
"type": "input",
1918
"element": {

block-kit/src/test/java/blocks/MarkdownTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ public class MarkdownTest {
1212
public void testExample01() {
1313
MarkdownBlock block = Markdown.example01();
1414
String actual = GsonFactory.createSnakeCase().toJson(block);
15-
String expected =
16-
"""
15+
String expected = """
1716
{
1817
"type": "markdown",
1918
"text": "**Lots of information here!!**"

block-kit/src/test/java/blocks/RichTextTest.java

Lines changed: 13 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ public class RichTextTest {
1212
public void testExample01() {
1313
java.util.List<RichTextBlock> blocks = RichText.example01();
1414
String actual = GsonFactory.createSnakeCase().toJson(blocks);
15-
String expected =
16-
"""
15+
String expected = """
1716
[
1817
{
1918
"type": "rich_text",
@@ -122,8 +121,7 @@ public void testExample01() {
122121
public void testExample02() {
123122
RichTextBlock block = RichText.example02();
124123
String actual = GsonFactory.createSnakeCase().toJson(block);
125-
String expected =
126-
"""
124+
String expected = """
127125
{
128126
"type": "rich_text",
129127
"block_id": "block1",
@@ -182,8 +180,7 @@ public void testExample02() {
182180
public void testExample03() {
183181
RichTextBlock block = RichText.example03();
184182
String actual = GsonFactory.createSnakeCase().toJson(block);
185-
String expected =
186-
"""
183+
String expected = """
187184
{
188185
"type": "rich_text",
189186
"block_id": "block1",
@@ -271,8 +268,7 @@ public void testExample03() {
271268
public void testExample04() {
272269
RichTextBlock block = RichText.example04();
273270
String actual = GsonFactory.createSnakeCase().toJson(block);
274-
String expected =
275-
"""
271+
String expected = """
276272
{
277273
"type": "rich_text",
278274
"elements": [
@@ -296,8 +292,7 @@ public void testExample04() {
296292
public void testExample05() {
297293
RichTextBlock block = RichText.example05();
298294
String actual = GsonFactory.createSnakeCase().toJson(block);
299-
String expected =
300-
"""
295+
String expected = """
301296
{
302297
"type": "rich_text",
303298
"block_id": "Vrzsu",
@@ -330,8 +325,7 @@ public void testExample05() {
330325
public void testExample06() {
331326
RichTextBlock block = RichText.example06();
332327
String actual = GsonFactory.createSnakeCase().toJson(block);
333-
String expected =
334-
"""
328+
String expected = """
335329
{
336330
"type": "rich_text",
337331
"elements": [
@@ -354,8 +348,7 @@ public void testExample06() {
354348
public void testExample07() {
355349
RichTextBlock block = RichText.example07();
356350
String actual = GsonFactory.createSnakeCase().toJson(block);
357-
String expected =
358-
"""
351+
String expected = """
359352
{
360353
"type": "rich_text",
361354
"elements": [
@@ -378,8 +371,7 @@ public void testExample07() {
378371
public void testExample08() {
379372
RichTextBlock block = RichText.example08();
380373
String actual = GsonFactory.createSnakeCase().toJson(block);
381-
String expected =
382-
"""
374+
String expected = """
383375
{
384376
"type": "rich_text",
385377
"elements": [
@@ -402,8 +394,7 @@ public void testExample08() {
402394
public void testExample09() {
403395
RichTextBlock block = RichText.example09();
404396
String actual = GsonFactory.createSnakeCase().toJson(block);
405-
String expected =
406-
"""
397+
String expected = """
407398
{
408399
"type": "rich_text",
409400
"elements": [
@@ -428,8 +419,7 @@ public void testExample09() {
428419
public void testExample10() {
429420
RichTextBlock block = RichText.example10();
430421
String actual = GsonFactory.createSnakeCase().toJson(block);
431-
String expected =
432-
"""
422+
String expected = """
433423
{
434424
"type": "rich_text",
435425
"elements": [
@@ -468,8 +458,7 @@ public void testExample10() {
468458
public void testExample11() {
469459
RichTextBlock block = RichText.example11();
470460
String actual = GsonFactory.createSnakeCase().toJson(block);
471-
String expected =
472-
"""
461+
String expected = """
473462
{
474463
"type": "rich_text",
475464
"elements": [
@@ -492,8 +481,7 @@ public void testExample11() {
492481
public void testExample12() {
493482
RichTextBlock block = RichText.example12();
494483
String actual = GsonFactory.createSnakeCase().toJson(block);
495-
String expected =
496-
"""
484+
String expected = """
497485
{
498486
"type": "rich_text",
499487
"elements": [
@@ -516,8 +504,7 @@ public void testExample12() {
516504
public void testExample13() {
517505
RichTextBlock block = RichText.example13();
518506
String actual = GsonFactory.createSnakeCase().toJson(block);
519-
String expected =
520-
"""
507+
String expected = """
521508
{
522509
"type": "rich_text",
523510
"elements": [

block-kit/src/test/java/blocks/SectionTest.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ public class SectionTest {
1212
public void testExample01() {
1313
SectionBlock block = Section.example01();
1414
String actual = GsonFactory.createSnakeCase().toJson(block);
15-
String expected =
16-
"""
15+
String expected = """
1716
{
1817
"type": "section",
1918
"text": {
@@ -29,8 +28,7 @@ public void testExample01() {
2928
public void testExample02() {
3029
SectionBlock block = Section.example02();
3130
String actual = GsonFactory.createSnakeCase().toJson(block);
32-
String expected =
33-
"""
31+
String expected = """
3432
{
3533
"type": "section",
3634
"text": {
@@ -57,8 +55,7 @@ public void testExample02() {
5755
public void testExample03() {
5856
SectionBlock block = Section.example03();
5957
String actual = GsonFactory.createSnakeCase().toJson(block);
60-
String expected =
61-
"""
58+
String expected = """
6259
{
6360
"type": "section",
6461
"text": {

block-kit/src/test/java/blocks/VideoTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ public class VideoTest {
1212
public void testExample01() {
1313
VideoBlock block = Video.example01();
1414
String actual = GsonFactory.createSnakeCase().toJson(block);
15-
String expected =
16-
"""
15+
String expected = """
1716
{
1817
"type": "video",
1918
"title": {

0 commit comments

Comments
 (0)