Package org.jboss.seam.wiki.core.action

Examples of org.jboss.seam.wiki.core.action.UploadHome


            protected void beforeRequest() {
                setParameter("cid", conversationId);
            }

            protected void invokeApplication() throws Exception {
                UploadHome uploadHome = (UploadHome)getInstance(UploadHome.class);
                assert uploadHome.getInstance().getId().equals(30l); // Init!

                assert uploadHome.getInstance().getTags().size() == 0;
                uploadHome.getTagEditor().setNewTag("New Tag");
                uploadHome.getTagEditor().addNewTag();
                assert invokeMethod("#{uploadHome.update}").equals("updated");
            }

            protected void renderResponse() throws Exception {
                UploadHome uploadHome = (UploadHome)getInstance(UploadHome.class);
                assert uploadHome.getInstance().getTags().size() == 1;
                assert uploadHome.getInstance().getTagsAsList().get(0).equals("New Tag");

                TagQuery tagQuery = (TagQuery)getInstance(TagQuery.class);
                tagQuery.setTag("New Tag");
                List<WikiFile> taggedFiles = tagQuery.getTaggedFiles();
                assert taggedFiles.size() == 1;
View Full Code Here


            protected void beforeRequest() {
                setParameter("cid", conversationId);
            }

            protected void invokeApplication() throws Exception {
                UploadHome uploadHome = (UploadHome)getInstance(UploadHome.class);
                assert uploadHome.getInstance().getId().equals(30l); // Init!

                assert invokeMethod("#{uploadHome.remove}").equals("removed");
            }
        }.run();
View Full Code Here

                setParameter("parentDirectoryId", "2");
            }

            protected void invokeApplication() throws Exception {

                UploadHome uploadHome = (UploadHome)getInstance(UploadHome.class);
                uploadHome.initEditor();

                assert uploadHome.getInstance().getFilename().equals("testupload2.zip");
                assert uploadHome.getUploadEditor().getClass().equals(WikiUploadEditor.class);
                assert uploadHome.getUploadEditor().getIncludeName().equals("wikiUploadEditor");

                assert invokeMethod("#{uploadHome.persist}").equals("persisted");
            }

            protected void renderResponse() throws Exception {
View Full Code Here

TOP

Related Classes of org.jboss.seam.wiki.core.action.UploadHome

Copyright © 2018 www.massapicom. 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.