PK CDC> README.mdPlay Mockito module *Unmaintained*
===================
*THIS MODULE IS NOT MAINTAINED ANYMORE*
Mockito is slightly incompatible with Play, for two reasons:
* Mockito caches classes, causing class cast exceptions when play reloads them after modification.
* Mockito uses a classloader to find the MockitoConfiguration class, that does not find source java files as used in Play.
This plugin solves those problems by:
* Shipping a minimally modified mockito in which you can disable the cache.
* Shipping a compiled MockitoConfiguration class that will be found by Mockito.
Hopefully, the patch for the first issue will be accepted upstream, so that this plugin no longer needs to ship a modified Mockito in the future.
*UPDATE*
I believe a patch for the first issue has been accepted a long time ago, and this plugin can be much simplified; no modified Mockito needs to be shipped anymore.
License
=======
Copyright 2011 Erik Bakker (http://eamelink.net).
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this project except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
PK CDC܍gN N build.xml
PK hDC+C C build.sh#!/bin/bash
MODULE="mockito"
VERSION=`grep self conf/dependencies.yml | sed "s/.*$MODULE //"`
TARGET=/var/www/repo/play-$MODULE/$MODULE-$VERSION.zip
rm -fr dist
play dependencies --sync
play build-module
if [ -e $TARGET ]; then
echo "Not publishing, $MODULE-$VERSION already exists"
else
cp dist/*.zip $TARGET
fi
PK CDC뙧; ; commands.py# Here you can create play commands that are specific to the module, and extend existing commands
MODULE = 'mockito'
# Commands that are specific to your module
COMMANDS = ['mockito:hello']
def execute(**kargs):
command = kargs.get("command")
app = kargs.get("app")
args = kargs.get("args")
env = kargs.get("env")
if command == "mockito:hello":
print "~ Hello"
# This will be executed before any command (new, run...)
def before(**kargs):
command = kargs.get("command")
app = kargs.get("app")
args = kargs.get("args")
env = kargs.get("env")
# This will be executed after any command (new, run...)
def after(**kargs):
command = kargs.get("command")
app = kargs.get("app")
args = kargs.get("args")
env = kargs.get("env")
if command == "new":
pass
PK 5zC}w|" " manifestversion=0.2
frameworkVersions=1.+
PK CDCXؗU U commands.pyc
qmNc @ s. d Z d g Z d Z d Z d Z d S( t mockitos
mockito:helloc K sT | j d } | j d } | j d } | j d } | d k rP d GHn d S( Nt commandt appt argst envs
mockito:hellos ~ Hello( t get( t kargsR R R R ( ( s5 /home/eamelink/projecten/lunatech/mockito/commands.pyt execute s c K s@ | j d } | j d } | j d } | j d } d S( NR R R R ( R ( R R R R R ( ( s5 /home/eamelink/projecten/lunatech/mockito/commands.pyt before s c K sO | j d } | j d } | j d } | j d } | d k rK n d S( NR R R R t new( R ( R R R R R ( ( s5 /home/eamelink/projecten/lunatech/mockito/commands.pyt after s N( t MODULEt COMMANDSR R R
( ( ( s5 /home/eamelink/projecten/lunatech/mockito/commands.pyt s PK CDCD_ _ ! documentation/manual/home.textileh1. Mockito module
This module allows you to use "Mockito":http://mockito.org/ in your Play application, without the class cast exceptions that you get if
you use a vanilla Mockito.
See "play-mockito on Github":https://github.com/eamelink/play-mockito/blob/master/README for more information.
h2. Usage
See the examples on the Mockito webpage.
PK 5zCeO
lib/javassist-3.18.1-GA.jarPK )hC META-INF/MANIFEST.MF V[o0~`IT,U(VeD$&ulvJٯq! C\sɔƆT&E{?ߕ6|$+Ii^1`PtPi{;o%M
G;5X
P
8<_[˄/sADm怳9
ЄLp,58PMgGIY
|Jcbl[ 'c![ _E@ 9 %r@&สGF3 >f*Ϙ6pD\lN[.8#pо;ʞ8b9g{nn.emQt?u'W>גsK/6h?ZKtw ^lr_u}b_;M}oh,.6#HْThdsjwIImθ
o2\y^ЭHoC%N$w4єXcE%ES1 =* WJ<1cޘ&L¬zF_c;<$˘Hx6=aRS(#`K:S9/")N1Bw19#5ZHh¬]U(q0ZuLc^waʶꊩ듼%TppLkWq\俶Ad/tLN _B{PKI2 D PK )hC META-INF/ PK PK )hC META-INF/maven/ PK PK )hC META-INF/maven/org.javassist/ PK PK )hC ' META-INF/maven/org.javassist/javassist/ PK PK )hC 5 META-INF/maven/org.javassist/javassist/pom.propertiesEM
0@}N1е!c6Z`-HHB~^]}n*Xh}ػ\Z0o]Y
P
{