Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resurrect integration tests: Chat Test #42

Closed
wants to merge 1 commit into from
Closed

Resurrect integration tests: Chat Test #42

wants to merge 1 commit into from

Conversation

stawicki91
Copy link
Contributor

No description provided.

public void testProperties() throws XmppStringprepException, NotConnectedException, Exception {
Chat newChat = chatManagerOne.createChat(conTwo.getUser());
PacketCollector collector = conTwo.createPacketCollector(new ThreadFilter(newChat.getThreadID()));
JivePropertiesManager.setJavaObjectEnabled(true);
Copy link
Member

Choose a reason for hiding this comment

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

Tests should leave the state unchanged, so if you set this to true, then you need to reset it at the end. Create two methods setUp() and tearDown(), annoate them with @BeforeClass and @afterclass, to set and reset the config of JivePropertiesManager.

@Flowdalic
Copy link
Member

Picked as 9d0ea3c

@Flowdalic Flowdalic closed this Apr 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants