Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: sclaflin@webucator.com Newsgroups: comp.lang.java.programmer Subject: Re: What is Model View Presenter. (Was: Hairy generics question) Date: Tue, 28 Feb 2012 06:22:22 -0800 (PST) Organization: http://groups.google.com Lines: 12 Message-ID: <28931329.122.1330438942820.JavaMail.geo-discussion-forums@vbne13> References: <3c65271e-a388-49c9-bcc6-ca3bf274e74f@e27g2000vbu.googlegroups.com> <29108397.63.1330110725245.JavaMail.geo-discussion-forums@vbpw21> <7822487.176.1330121248108.JavaMail.geo-discussion-forums@vbkl3> <4f4abd91$0$281$14726298@news.sunsite.dk> NNTP-Posting-Host: 96.227.80.185 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1330439777 2262 127.0.0.1 (28 Feb 2012 14:36:17 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 28 Feb 2012 14:36:17 +0000 (UTC) In-Reply-To: <4f4abd91$0$281$14726298@news.sunsite.dk> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=96.227.80.185; posting-account=SVWHxwoAAAAHgCbAu0-fW388NuDxpM9h User-Agent: G2/1.0 X-Google-Web-Client: true X-Received-Bytes: 2265 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:12491 My app is a GWT app, and Google is promoting their variant of MVP as a good= architecture for GWT apps. For those not familiar with GWT, it compiles c= lient Java code to JavaScript for use in a browser in a web app. In GWT, the view should be something for which a mock can be injected for u= nit testing, where the mock can be implemented with pure Java code, so that= the testing doesn't have to be done using Javascript or a browser (the ini= tialization of the test case when an actual browser is involved takes much = longer). To accomplish this without jumping through a lot of hoops, the vi= ew needs to be pretty "dumb". There's a good presentation of this at http:= //www.google.com/events/io/2010/sessions/gwt-continuous-build-testing.html