updated · mohammad2java/java8-feature@7f5a8b3 · GitHub
Skip to content

Commit 7f5a8b3

Browse files
committed
updated
1 parent 85d3110 commit 7f5a8b3

8 files changed

Lines changed: 105 additions & 45 deletions

File tree

.classpath

Lines changed: 1 addition & 2 deletions

.settings/org.eclipse.jdt.core.prefs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ org.eclipse.jdt.core.compiler.debug.lineNumber=generate
88
org.eclipse.jdt.core.compiler.debug.localVariable=generate
99
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
1010
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
11+
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
1112
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
1213
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
14+
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
1315
org.eclipse.jdt.core.compiler.release=disabled
1416
org.eclipse.jdt.core.compiler.source=1.8

pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616

1717
<dependencies>
1818
<dependency>
19-
<groupId>junit</groupId>
20-
<artifactId>junit</artifactId>
21-
<version>3.8.1</version>
22-
<scope>test</scope>
23-
</dependency>
19+
<groupId>org.junit.jupiter</groupId>
20+
<artifactId>junit-jupiter-engine</artifactId>
21+
<version>5.8.1</version>
22+
<scope>test</scope>
23+
</dependency>
2424
</dependencies>
2525
<build>
2626
<plugins>

src/main/java/com/amir/api/StreamApi.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.amir.api;
22

33
import java.util.Arrays;
4-
import java.util.Comparator;
54
import java.util.List;
65
import java.util.function.Predicate;
76
import java.util.stream.Collectors;

src/main/java/com/amir/api/time/Date2TimeDemo.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
package com.amir.api.time;
22

3-
import java.time.Instant;
43
import java.time.LocalDate;
54
import java.time.ZoneId;
65
import java.time.ZonedDateTime;
76
import java.time.format.DateTimeFormatter;
8-
import java.time.format.DateTimeFormatterBuilder;
9-
import java.time.temporal.TemporalAccessor;
10-
import java.util.Calendar;
11-
import java.util.Date;
12-
import java.util.GregorianCalendar;
137
import java.util.TimeZone;
148

159
public class Date2TimeDemo {
Lines changed: 17 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,24 @@
11
package com.amir;
22

3-
import junit.framework.Test;
4-
import junit.framework.TestCase;
5-
import junit.framework.TestSuite;
6-
73
/**
84
* Unit test for simple App.
95
*/
10-
public class AppTest
11-
extends TestCase
12-
{
13-
/**
14-
* Create the test case
15-
*
16-
* @param testName name of the test case
17-
*/
18-
public AppTest( String testName )
19-
{
20-
super( testName );
21-
}
22-
23-
/**
24-
* @return the suite of tests being tested
25-
*/
26-
public static Test suite()
27-
{
28-
return new TestSuite( AppTest.class );
29-
}
6+
public class AppTest {
7+
8+
9+
public static void main(String[] args) {
10+
11+
}
3012

31-
/**
32-
* Rigourous Test :-)
33-
*/
34-
public void testApp()
35-
{
36-
assertTrue( true );
37-
}
13+
static{
14+
15+
System.out.println("amir");
16+
17+
int i=1001;
18+
19+
assert i>=10000;
20+
21+
System.out.println("finished");
22+
23+
}
3824
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package com.amir.wrapper;
2+
3+
4+
5+
public class IntegerCP {
6+
7+
8+
9+
}
Lines changed: 71 additions & 0 deletions

0 commit comments

Comments
 (0)