Skip to content
This repository has been archived by the owner on Jan 14, 2023. It is now read-only.

Add Java samples for slash commands. #14

Merged
merged 6 commits into from
Nov 11, 2016
Merged

Add Java samples for slash commands. #14

merged 6 commits into from
Nov 11, 2016

Conversation

tswast
Copy link
Contributor

@tswast tswast commented Nov 4, 2016

Use Circle to test the Java samples.

@lesv PTAL

Use Circle to test the Java samples.
@tswast
Copy link
Contributor Author

tswast commented Nov 4, 2016

(I cancelled Travis to free up the queue, since it's not actually running any Java tests.)


<p>Follow the
<a href="https://github.com/GoogleCloudPlatform/slack-samples/tree/master/java/command">instructions
for this sample</a> to configure and modify this sample.
Copy link

Choose a reason for hiding this comment

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

newLine

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

servletUnderTest.doPost(mockRequest, mockResponse);
assertThat(responseWriter.toString()).isEqualTo("Hello, Jane Doe.");
}
}
Copy link

Choose a reason for hiding this comment

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

newLine

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.


- Type `/greet` in your Slack team.

You should see the text `Hello, world.` in response.
Copy link

Choose a reason for hiding this comment

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

We should make this the template.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good to me. I've pulled the common bits out into templates here: GoogleCloudPlatform/java-docs-samples#405

<module name="SuppressWarningsFilter" />
<!-- Allow silencing with comment http://stackoverflow.com/questions/4023185 -->
<module name="SuppressionCommentFilter" />
</module>
Copy link

Choose a reason for hiding this comment

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

Do we really need to check this in everywhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, I figured out how to bundle this in the resources of the parent: GoogleCloudPlatform/java-repo-tools#45

This means we don't have to bundle google-checks.xml.

Also, add templates for READMEs.
Fixes copy-paste error.
Regenerated with `markdown-pp`.
@lesv
Copy link

lesv commented Nov 11, 2016

LGTM - Once you get something to pass

I forgot to remove the -SNAPSHOT when testing from the
`1-start/pom.xml`. By using the root `pom.xml`, mistakes like this
should be prevented.
@tswast tswast merged commit ba62585 into master Nov 11, 2016
@tswast tswast deleted the tswast-slash branch November 11, 2016 17:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants