From users-return-94886-archive-asf-public=cust-asf.ponee.io@wicket.apache.org Wed Jul 10 09:41:20 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id AD16218064A for ; Wed, 10 Jul 2019 11:41:19 +0200 (CEST) Received: (qmail 75561 invoked by uid 500); 10 Jul 2019 09:41:18 -0000 Mailing-List: contact users-help@wicket.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@wicket.apache.org Delivered-To: mailing list users@wicket.apache.org Received: (qmail 75535 invoked by uid 99); 10 Jul 2019 09:41:18 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Jul 2019 09:41:18 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 888D71A3416 for ; Wed, 10 Jul 2019 09:41:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.004 X-Spam-Level: ** X-Spam-Status: No, score=2.004 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=gmx.net Received: from mx1-he-de.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id RdcTGAw_zRIr for ; Wed, 10 Jul 2019 09:41:15 +0000 (UTC) Received-SPF: None (mailfrom) identity=mailfrom; client-ip=212.227.15.19; helo=mout.gmx.net; envelope-from=tom@richmountain.de; receiver= Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with ESMTPS id 8E7C57E209 for ; Wed, 10 Jul 2019 09:41:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1562751673; bh=3jbrNS+bkRprBNAXkS8as1KXlh6eu8UIxvc+rG6w15U=; h=X-UI-Sender-Class:From:Date:Subject:References:In-Reply-To:To; b=iRu+ezFaKiLZkJV8+ikUIMYO4tLDMPkjBZhsaK+eRI7ggTWlKbtDBJHxOEb2KGx92 8IAyY8kR0OwSGGX8XnW6wjk6PG6Q3BHSx3T764OvvJ+P57Aww0BZSTotsWOGhW9CPP 1SjFed3cM6nhYR/QY6O3Wx6zx2AgVryycLnqSQ54= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [10.133.113.189] ([80.187.101.143]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Lvkwm-1iYXDB2dA4-017Y2S for ; Wed, 10 Jul 2019 11:41:13 +0200 From: =?utf-8?Q?Tom_G=C3=B6tz?= Content-Type: multipart/alternative; boundary=Apple-Mail-A4B71828-705A-4E42-B3DA-E933BA5A8A17 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (1.0) Date: Wed, 10 Jul 2019 11:41:11 +0200 Subject: Re: Wicket tests with Spring Boot Message-Id: <112ADAE3-7AAD-4568-A8CF-CBDAA0D9D09D@richmountain.de> References: In-Reply-To: To: users@wicket.apache.org X-Mailer: iPhone Mail (16F203) X-Provags-ID: V03:K1:R7jzsltecxtcZZDjJNCRDgdFUsmjwwR8N2J+hTr9G0ec0EbnL4w 9WcGNeFvLdDMXFtPbwSmN8pa5lYwtY9Z+KUqbqDjhZ0NfVus7oton1q0/IQ6WKrJd26aYuA ou3+y4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OeW38jMAjM0OEi9D0ZFZJWW+UyciI2ytDxjm/ foC7KHjOGVRUcL2qam8hBoF9R9fLXjVNjiNsRQqqaoicjIIl0MSjpGtaRwQy5YHv7QAOTp3nk rl3+2MTWPrha1R8D4xVHeJzTbuG4yB7zKiKcYIlQRKk9LEwH4QEFZ6WdQvCcvu0h+PKk9UCzd 8rF/zgV/19kCGVECeMPM9Xj7XWZBQqZ0tyo --Apple-Mail-A4B71828-705A-4E42-B3DA-E933BA5A8A17 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable We have both, a service layer and a persistence layer (each in it's own mave= n module). We use Spring Data Jpa repositories for the persistence layer and= Liquibase for managing DB changes. When testing the Wicket layer I don't wa= nt the complete persistence and service layer to be initialized by Spring (e= .g. no need for persistence context initialization and Liquibase), but would= prefer to work with mocks. Is that enough information for you or what else s= hould I provide? Tom > Am 10.07.2019 um 11:00 schrieb Andrei Kondratev : >=20 > Hi Tom! >=20 > It depends on the implementation. If you have a service level it's not nec= essary to mock persistence, but enough to mock services and inject them (if y= ou use @Autowired annotation). >=20 > Could you please give a bit more examples of what you're trying to test? >=20 >=20 >> On Wed, 10 Jul 2019 at 20:56, "Tom G=C3=B6tz" wrote= : >> Hi there, >>=20 >> we have a Spring Boot based webapp (Wicket 8.4 with wicket-spring-boot 2.= 1.6) and would like to create a base test class for our Wicket tests. For te= sting, we would like to mock the service and persistence layer (e.g. with Mo= ckito). Is there a good example for that purpose? >>=20 >> Cheers >> Tom >>=20 >>=20 >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org >> For additional commands, e-mail: users-help@wicket.apache.org >>=20 > --=20 > ANDREW KONDRATEV > TECHNICAL LEAD >=20 >=20 >=20 > MOB +64 210 492 674 > EMAIL andrei.kondratev@unimarket.com > www.unimarket.com >=20 > Simple and easy-to-use software that brings all your procurement into one p= lace. --Apple-Mail-A4B71828-705A-4E42-B3DA-E933BA5A8A17--