Skip to content

Commit

Permalink
Renamed test package; removed some old example tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
rliesenfeld committed Jul 17, 2015
1 parent 1db8166 commit e2e979f
Show file tree
Hide file tree
Showing 20 changed files with 33 additions and 191 deletions.
12 changes: 0 additions & 12 deletions main/test/integrationTests/homepage/AnotherDependency.java

This file was deleted.

13 changes: 0 additions & 13 deletions main/test/integrationTests/homepage/DependencyXyz.java

This file was deleted.

This file was deleted.

33 changes: 0 additions & 33 deletions main/test/integrationTests/homepage/JMockitMockupsExampleTest.java

This file was deleted.

This file was deleted.

22 changes: 0 additions & 22 deletions main/test/integrationTests/homepage/ServiceAbc.java

This file was deleted.

2 changes: 1 addition & 1 deletion main/test/mockit/ExpectationsForConstructorsTest.java
Expand Up @@ -95,7 +95,7 @@ public void mockClassHierarchyWhereFirstConstructorInBaseClassIsPrivate(@Mocked
}

@SuppressWarnings({"UnnecessaryFullyQualifiedName", "UnusedParameters"})
static class D extends integrationTests.serviceA.ServiceA { D(String s) {} }
static class D extends otherTests.serviceA.ServiceA { D(String s) {} }

@Test
public void mockClassHierarchyWhereFirstConstructorInBaseClassOnAnotherPackageIsPackagePrivate(@Mocked D mock)
Expand Down
@@ -1,8 +1,8 @@
/*
* Copyright (c) 2006-2014 Rogério Liesenfeld
* Copyright (c) 2006-2015 Rogério Liesenfeld
* This file is subject to the terms of the MIT license (see LICENSE.txt).
*/
package integrationTests;
package otherTests;

import java.lang.reflect.*;
import java.net.*;
Expand Down
Expand Up @@ -2,7 +2,7 @@
* Copyright (c) 2006-2015 Rogério Liesenfeld
* This file is subject to the terms of the MIT license (see LICENSE.txt).
*/
package integrationTests;
package otherTests;

import static org.junit.Assert.*;
import org.junit.*;
Expand Down
@@ -1,8 +1,4 @@
/*
* Copyright (c) 2006-2011 Rogério Liesenfeld
* This file is subject to the terms of the MIT license (see LICENSE.txt).
*/
package integrationTests.multicast;
package otherTests.multicast;

public final class Client
{
Expand Down
@@ -1,8 +1,8 @@
/*
* Copyright (c) 2006-2014 Rogério Liesenfeld
* Copyright (c) 2006-2015 Rogério Liesenfeld
* This file is subject to the terms of the MIT license (see LICENSE.txt).
*/
package integrationTests.multicast;
package otherTests.multicast;

import java.io.*;
import java.net.*;
Expand Down
@@ -1,8 +1,8 @@
/*
* Copyright (c) 2006-2014 Rogério Liesenfeld
* Copyright (c) 2006-2015 Rogério Liesenfeld
* This file is subject to the terms of the MIT license (see LICENSE.txt).
*/
package integrationTests.multicast;
package otherTests.multicast;

import java.io.*;
import java.net.*;
Expand Down
@@ -1,8 +1,4 @@
/*
* Copyright (c) 2006-2011 Rogério Liesenfeld
* This file is subject to the terms of the MIT license (see LICENSE.txt).
*/
package integrationTests.multicast;
package otherTests.multicast;

public interface StatusListener
{
Expand Down
@@ -1,12 +1,8 @@
/*
* Copyright (c) 2006-2013 Rogério Liesenfeld
* This file is subject to the terms of the MIT license (see LICENSE.txt).
*/
package integrationTests.serviceA;
package otherTests.serviceA;

import java.util.*;

import integrationTests.serviceB.*;
import otherTests.serviceB.*;

public class ServiceA
{
Expand Down
@@ -1,8 +1,8 @@
/*
* Copyright (c) 2006-2014 Rogério Liesenfeld
* Copyright (c) 2006-2015 Rogério Liesenfeld
* This file is subject to the terms of the MIT license (see LICENSE.txt).
*/
package integrationTests.serviceA;
package otherTests.serviceA;

import java.util.*;
import static java.util.Arrays.*;
Expand All @@ -12,7 +12,7 @@

import mockit.*;

import integrationTests.serviceB.*;
import otherTests.serviceB.*;

public final class ServiceATest
{
Expand Down
@@ -1,8 +1,4 @@
/*
* Copyright (c) 2006-2011 Rogério Liesenfeld
* This file is subject to the terms of the MIT license (see LICENSE.txt).
*/
package integrationTests.serviceB;
package otherTests.serviceB;

public final class ServiceB
{
Expand Down
@@ -1,8 +1,8 @@
/*
* Copyright (c) 2006-2011 Rogério Liesenfeld
* Copyright (c) 2006-2015 Rogério Liesenfeld
* This file is subject to the terms of the MIT license (see LICENSE.txt).
*/
package integrationTests.textFile;
package otherTests.textFile;

import java.io.*;
import java.util.*;
Expand Down Expand Up @@ -109,11 +109,13 @@ static final class DefaultTextReader implements TextReader
reader = new FileReader(fileName);
}

@Override
public long skip(long n) throws IOException
{
return reader.skip(n);
}

@Override
public String readLine() throws IOException
{
StringBuilder buf = new StringBuilder();
Expand All @@ -131,6 +133,7 @@ public String readLine() throws IOException
return buf.toString();
}

@Override
public void close() throws IOException
{
reader.close();
Expand Down
@@ -1,18 +1,18 @@
/*
* Copyright (c) 2006-2014 Rogério Liesenfeld
* Copyright (c) 2006-2015 Rogério Liesenfeld
* This file is subject to the terms of the MIT license (see LICENSE.txt).
*/
package integrationTests.textFile;
package otherTests.textFile;

import java.io.*;
import java.util.*;

import org.junit.*;
import static org.junit.Assert.*;

import mockit.*;

import integrationTests.textFile.TextFile.*;
import static org.junit.Assert.*;
import otherTests.textFile.TextFile.*;

public final class TextFileUsingExpectationsTest
{
Expand Down
@@ -1,18 +1,18 @@
/*
* Copyright (c) 2006-2013 Rogério Liesenfeld
* Copyright (c) 2006-2015 Rogério Liesenfeld
* This file is subject to the terms of the MIT license (see LICENSE.txt).
*/
package integrationTests.textFile;
package otherTests.textFile;

import java.io.*;
import java.util.*;

import org.junit.*;
import static org.junit.Assert.*;

import mockit.*;

import integrationTests.textFile.TextFile.*;
import static org.junit.Assert.*;
import otherTests.textFile.TextFile.*;

public final class TextFileUsingMockUpsTest
{
Expand Down
@@ -1,18 +1,18 @@
/*
* Copyright (c) 2006-2014 Rogério Liesenfeld
* Copyright (c) 2006-2015 Rogério Liesenfeld
* This file is subject to the terms of the MIT license (see LICENSE.txt).
*/
package integrationTests.textFile;
package otherTests.textFile;

import java.io.*;
import java.util.*;

import org.junit.*;
import static org.junit.Assert.*;

import mockit.*;

import integrationTests.textFile.TextFile.*;
import static org.junit.Assert.*;
import otherTests.textFile.TextFile.*;

public final class TextFileUsingVerificationsTest
{
Expand Down

0 comments on commit e2e979f

Please sign in to comment.