/**
 *
 * Copyright © 2015 Florian Schmaus
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.jxmpp.jid;

import org.jxmpp.jid.impl.JidCreate;
import org.jxmpp.stringprep.XmppStringprepException;

public class JidTestUtil {

	public static final DomainBareJid EXAMPLE_ORG;
	public static final EntityBareJid DUMMY_AT_EXAMPLE_ORG;
	public static final EntityFullJid DUMMY_AT_EXAMPLE_ORG_SLASH_DUMMYRESOURCE;

	public static final EntityBareJid BARE_JID_1;
	public static final EntityBareJid BARE_JID_2;

	public static final EntityFullJid FULL_JID_1_RESOURCE_1;
	public static final EntityFullJid FULL_JID_1_RESOURCE_2;
	public static final EntityFullJid FULL_JID_2_RESOURCE_1;
	public static final EntityFullJid FULL_JID_2_RESOURCE_2;

	public static final DomainBareJid DOMAIN_BARE_JID_1;
	public static final DomainBareJid DOMAIN_BARE_JID_2;

	public static final DomainFullJid DOMAIN_FULL_JID_1;
	public static final DomainFullJid DOMAIN_FULL_JID_2;

	public static final DomainBareJid MUC_EXAMPLE_ORG;
	public static final DomainBareJid PUBSUB_EXAMPLE_ORG;

	static {
		try {
			EXAMPLE_ORG = JidCreate.domainBareFrom("example.org");
			DUMMY_AT_EXAMPLE_ORG = JidCreate.entityBareFrom("dummy@example.org");
			DUMMY_AT_EXAMPLE_ORG_SLASH_DUMMYRESOURCE = JidCreate.entityFullFrom("dummy@example.org/dummyresource");

			BARE_JID_1 = JidCreate.entityBareFrom("one@exampleOne.org");
			BARE_JID_2 = JidCreate.entityBareFrom("one@exampleTwo.org");

			FULL_JID_1_RESOURCE_1 = JidCreate.entityFullFrom("one@exampleOne.org/resourceOne");
			FULL_JID_1_RESOURCE_2 = JidCreate.entityFullFrom("one@exampleOne.org/resourceTwo");
			FULL_JID_2_RESOURCE_1 = JidCreate.entityFullFrom("two@exampleTwo.org/resourceOne");
			FULL_JID_2_RESOURCE_2 = JidCreate.entityFullFrom("two@exampleTwo.org/resourceTwo");

			DOMAIN_BARE_JID_1 = JidCreate.domainBareFrom("exampleOne.org");
			DOMAIN_BARE_JID_2 = JidCreate.domainBareFrom("exampleTwo.org");

			DOMAIN_FULL_JID_1 = JidCreate.domainFullFrom("exampleOne.org/oneResource");
			DOMAIN_FULL_JID_2 = JidCreate.domainFullFrom("exampleTwo.org/twoResource");

			MUC_EXAMPLE_ORG = JidCreate.domainBareFrom("muc.example.org");
			PUBSUB_EXAMPLE_ORG = JidCreate.domainBareFrom("pubsub.example.org");
		} catch (XmppStringprepException e) {
			throw new IllegalStateException(e);
		}
	}
}

@@ -19,16 +19,21 @@
 t %C2%A9 2015
+-2016
  Florian
@@ -41,16 +41,16 @@
 Schmaus%0A
-
  *%0A * Li
@@ -664,16 +664,57 @@
 Create;%0A
+import org.jxmpp.jid.parts.Resourcepart;%0A
 import o
@@ -1624,16 +1624,65 @@
 E_ORG;%0A%0A
+%09public static final Resourcepart RESOURCEPART;%0A%0A
 %09static 
@@ -2768,16 +2768,16 @@
 .org%22);%0A
-
 %09%09%09PUBSU
@@ -2839,16 +2839,66 @@
 e.org%22);
+%0A%0A%09%09%09RESOURCEPART = Resourcepart.from(%22resource%22);
 %0A%09%09%7D cat

Add JidTestUtil.RESOURCEPART