Examples of syncEditorToInstance()


Examples of org.jboss.seam.wiki.core.action.DocumentHome.syncEditorToInstance()

                DocumentHome docHome = (DocumentHome)getInstance(DocumentHome.class);
                assert docHome.getInstance().getId().equals(6l); // Init!

                docHome.getTextEditor().setValue("[<=contentMacro[param=value]]");

                docHome.syncEditorToInstance(docHome.getParentNode().getId(), docHome.getInstance());
                docHome.syncMacros(docHome.getInstance());

                assert docHome.getInstance().getHeaderMacros().size() == 2;
                assert docHome.getInstance().getContentMacros().size() == 1;
                assert docHome.getInstance().getFooterMacros().size() == 2;
View Full Code Here

Examples of org.jboss.seam.wiki.core.action.DocumentHome.syncEditorToInstance()

            protected void invokeApplication() throws Exception {
                DocumentHome docHome = (DocumentHome)getInstance(DocumentHome.class);
                assert docHome.getInstance().getId().equals(6l); // Init!

                docHome.getTextEditor().setValue("[=>http://foo.bar]");
                docHome.syncEditorToInstance(docHome.getParentNode().getId(), docHome.getInstance());
                assert docHome.getInstance().getContent().equals("[=>http://foo.bar]");

                docHome.getTextEditor().setValue("[=>https://foo.bar]");
                docHome.syncEditorToInstance(docHome.getParentNode().getId(), docHome.getInstance());
                assert docHome.getInstance().getContent().equals("[=>https://foo.bar]");
View Full Code Here

Examples of org.jboss.seam.wiki.core.action.DocumentHome.syncEditorToInstance()

                docHome.getTextEditor().setValue("[=>http://foo.bar]");
                docHome.syncEditorToInstance(docHome.getParentNode().getId(), docHome.getInstance());
                assert docHome.getInstance().getContent().equals("[=>http://foo.bar]");

                docHome.getTextEditor().setValue("[=>https://foo.bar]");
                docHome.syncEditorToInstance(docHome.getParentNode().getId(), docHome.getInstance());
                assert docHome.getInstance().getContent().equals("[=>https://foo.bar]");

                docHome.getTextEditor().setValue("[=>ftp://foo.bar]");
                docHome.syncEditorToInstance(docHome.getParentNode().getId(), docHome.getInstance());
                assert docHome.getInstance().getContent().equals("[=>ftp://foo.bar]");
View Full Code Here

Examples of org.jboss.seam.wiki.core.action.DocumentHome.syncEditorToInstance()

                docHome.getTextEditor().setValue("[=>https://foo.bar]");
                docHome.syncEditorToInstance(docHome.getParentNode().getId(), docHome.getInstance());
                assert docHome.getInstance().getContent().equals("[=>https://foo.bar]");

                docHome.getTextEditor().setValue("[=>ftp://foo.bar]");
                docHome.syncEditorToInstance(docHome.getParentNode().getId(), docHome.getInstance());
                assert docHome.getInstance().getContent().equals("[=>ftp://foo.bar]");

                docHome.getTextEditor().setValue("[=>mailto:foo@bar.tld]");
                docHome.syncEditorToInstance(docHome.getParentNode().getId(), docHome.getInstance());
                assert docHome.getInstance().getContent().equals("[=>mailto:foo@bar.tld]");
View Full Code Here

Examples of org.jboss.seam.wiki.core.action.DocumentHome.syncEditorToInstance()

                docHome.getTextEditor().setValue("[=>ftp://foo.bar]");
                docHome.syncEditorToInstance(docHome.getParentNode().getId(), docHome.getInstance());
                assert docHome.getInstance().getContent().equals("[=>ftp://foo.bar]");

                docHome.getTextEditor().setValue("[=>mailto:foo@bar.tld]");
                docHome.syncEditorToInstance(docHome.getParentNode().getId(), docHome.getInstance());
                assert docHome.getInstance().getContent().equals("[=>mailto:foo@bar.tld]");

                docHome.getTextEditor().setValue("[Foo Bar=>http://foo.bar]");
                docHome.syncEditorToInstance(docHome.getParentNode().getId(), docHome.getInstance());
                assert docHome.getInstance().getContent().equals("[Foo Bar=>http://foo.bar]");
View Full Code Here

Examples of org.jboss.seam.wiki.core.action.DocumentHome.syncEditorToInstance()

                docHome.getTextEditor().setValue("[=>mailto:foo@bar.tld]");
                docHome.syncEditorToInstance(docHome.getParentNode().getId(), docHome.getInstance());
                assert docHome.getInstance().getContent().equals("[=>mailto:foo@bar.tld]");

                docHome.getTextEditor().setValue("[Foo Bar=>http://foo.bar]");
                docHome.syncEditorToInstance(docHome.getParentNode().getId(), docHome.getInstance());
                assert docHome.getInstance().getContent().equals("[Foo Bar=>http://foo.bar]");

                docHome.getTextEditor().setValue("[Foo Bar=>https://foo.bar]");
                docHome.syncEditorToInstance(docHome.getParentNode().getId(), docHome.getInstance());
                assert docHome.getInstance().getContent().equals("[Foo Bar=>https://foo.bar]");
View Full Code Here

Examples of org.jboss.seam.wiki.core.action.DocumentHome.syncEditorToInstance()

                docHome.getTextEditor().setValue("[Foo Bar=>http://foo.bar]");
                docHome.syncEditorToInstance(docHome.getParentNode().getId(), docHome.getInstance());
                assert docHome.getInstance().getContent().equals("[Foo Bar=>http://foo.bar]");

                docHome.getTextEditor().setValue("[Foo Bar=>https://foo.bar]");
                docHome.syncEditorToInstance(docHome.getParentNode().getId(), docHome.getInstance());
                assert docHome.getInstance().getContent().equals("[Foo Bar=>https://foo.bar]");

                docHome.getTextEditor().setValue("[Foo Bar=>ftp://foo.bar]");
                docHome.syncEditorToInstance(docHome.getParentNode().getId(), docHome.getInstance());
                assert docHome.getInstance().getContent().equals("[Foo Bar=>ftp://foo.bar]");
View Full Code Here

Examples of org.jboss.seam.wiki.core.action.DocumentHome.syncEditorToInstance()

                docHome.getTextEditor().setValue("[Foo Bar=>https://foo.bar]");
                docHome.syncEditorToInstance(docHome.getParentNode().getId(), docHome.getInstance());
                assert docHome.getInstance().getContent().equals("[Foo Bar=>https://foo.bar]");

                docHome.getTextEditor().setValue("[Foo Bar=>ftp://foo.bar]");
                docHome.syncEditorToInstance(docHome.getParentNode().getId(), docHome.getInstance());
                assert docHome.getInstance().getContent().equals("[Foo Bar=>ftp://foo.bar]");

                docHome.getTextEditor().setValue("[Foo Bar=>mailto:foo@bar.tld]");
                docHome.syncEditorToInstance(docHome.getParentNode().getId(), docHome.getInstance());
                assert docHome.getInstance().getContent().equals("[Foo Bar=>mailto:foo@bar.tld]");
View Full Code Here

Examples of org.jboss.seam.wiki.core.action.DocumentHome.syncEditorToInstance()

                docHome.getTextEditor().setValue("[Foo Bar=>ftp://foo.bar]");
                docHome.syncEditorToInstance(docHome.getParentNode().getId(), docHome.getInstance());
                assert docHome.getInstance().getContent().equals("[Foo Bar=>ftp://foo.bar]");

                docHome.getTextEditor().setValue("[Foo Bar=>mailto:foo@bar.tld]");
                docHome.syncEditorToInstance(docHome.getParentNode().getId(), docHome.getInstance());
                assert docHome.getInstance().getContent().equals("[Foo Bar=>mailto:foo@bar.tld]");

            }

        }.run();
View Full Code Here

Examples of org.jboss.seam.wiki.core.action.DocumentHome.syncEditorToInstance()

                DocumentHome docHome = (DocumentHome)getInstance(DocumentHome.class);
                assert docHome.getInstance().getId().equals(6l); // Init!

                docHome.syncInstanceToEditor(docHome.getParentNode().getId(), docHome.getInstance());
                docHome.getTextEditor().setValue("New text");
                docHome.syncEditorToInstance(docHome.getParentNode().getId(), docHome.getInstance());
                docHome.setMinorRevision(false);

                assert invokeMethod("#{documentHome.update}").equals("updated");
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.