Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 23059 invoked from network); 31 Mar 2008 20:54:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Mar 2008 20:54:14 -0000 Received: (qmail 51877 invoked by uid 500); 31 Mar 2008 20:54:05 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 51846 invoked by uid 500); 31 Mar 2008 20:54:04 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 51835 invoked by uid 99); 31 Mar 2008 20:54:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Mar 2008 13:54:04 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [212.227.126.174] (HELO moutng.kundenserver.de) (212.227.126.174) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Mar 2008 20:53:23 +0000 Received: from [192.168.0.234] (host86-129-117-158.range86-129.btcentralplus.com [86.129.117.158]) by mrelayeu.kundenserver.de (node=mrelayeu7) with ESMTP (Nemesis) id 0ML2xA-1JgR0X0x08-0000dU; Mon, 31 Mar 2008 22:53:33 +0200 Message-ID: <47F14F4C.2070108@cyberspaceroad.com> Date: Mon, 31 Mar 2008 21:53:32 +0100 From: Adam Hardy User-Agent: Icedove 1.5.0.14pre (X11/20080305) MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: testing file uploads References: <77380.66032.qm@web56701.mail.re3.yahoo.com> In-Reply-To: <77380.66032.qm@web56701.mail.re3.yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX1/9egQNUQoF65LEaRgKg5JW1rXfpIfFnftv6Ms bUZywqmJoeOKat/OHerOWag1SgYDG9CFIYVeXGhqgASA6xYxwW Cwyfjv4ByeV8nOfsugZf59VWj/Ee55M X-Virus-Checked: Checked by ClamAV on apache.org Dave Newton on 31/03/08 18:42, wrote: > --- Adam Hardy wrote: >> I need to test an action that is getting uploaded files and piping them >> straight into Strings. I don't want to save actual files on server, so I'll > >> get the multipart request wrapper directly. > > What, specifically, are you trying to test? > > I ask because I've never had any particular reason to test file uploads > inside the container, because the container itself should have already tested > that and verified its operations. Everything else I've ever done with files > has been testable outside the container. The action has to get strings out of the request, work out which file they are from and call the appropriate managers, with the corresponding string as a request. There's logic in the action that basically has nothing to do with how the container handles it (I hope). --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org