Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working test case undet intellij #1

Merged
merged 4 commits into from
Sep 3, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
<artifactId>lombok</artifactId>
<version>1.16.16</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
</dependency>
</dependencies>

<build>
Expand Down
21 changes: 21 additions & 0 deletions src/test/java/com/test/MyTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package com.test;

import org.junit.Test;

import static org.junit.Assert.assertEquals;

/**
* You need to set Intellij compiler to Javac instead of Ajc in Preferences/Build/Compiler
*/
public class MyTest {

@Test
public void meh() {
MyObject o = new MyObject();
o.setId("meh");
assertEquals(o.getId(), "meh");
System.out.println(o);
YourClass y = new YourClass();
y.yourMethodAround();
}
}