diff --git a/.idea/compiler.xml b/.idea/compiler.xml
new file mode 100644
index 0000000..51be54b
--- /dev/null
+++ b/.idea/compiler.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__junit_junit_4_12.xml b/.idea/libraries/Maven__junit_junit_4_12.xml
new file mode 100644
index 0000000..d411041
--- /dev/null
+++ b/.idea/libraries/Maven__junit_junit_4_12.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_hamcrest_hamcrest_all_1_3.xml b/.idea/libraries/Maven__org_hamcrest_hamcrest_all_1_3.xml
new file mode 100644
index 0000000..5619316
--- /dev/null
+++ b/.idea/libraries/Maven__org_hamcrest_hamcrest_all_1_3.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..aca9be3
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..9a49ae6
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..94a25f7
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
new file mode 100644
index 0000000..8bbe426
--- /dev/null
+++ b/.idea/workspace.xml
@@ -0,0 +1,637 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+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
+
+
+
+
+
+
+ No facets are configured
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ techno-atom-sample-1
+
+
+
+
+
+
+
+
+
+
+
+
+ 1.8
+
+
+
+
+
+
+
+
+
+
+
+ Maven: junit:junit:4.12
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/first.txt b/first.txt
new file mode 100644
index 0000000..0022b48
--- /dev/null
+++ b/first.txt
@@ -0,0 +1,109 @@
+package ru.odnoklassniki;
+
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+
+/**
+ * Created by Maksim Egorichev on 4/12/18 at 1:53 AM
+ */
+public class ClassToBeTested {
+
+ private ClassToBeTested() {
+ }
+
+ public static List sortStringsByLength(String string1, String string2) throws Exception {
+ if (string1 == null || string1.trim().length() == 0) {
+ throw new IllegalArgumentException("string1 must not be null or empty");
+ }
+
+ if (string2 == null || string2.trim().length() == 0) {
+ throw new IllegalArgumentException("string2 must not be null or empty");
+ }
+
+ final int str1Len = string1.length();
+ final int str2Len = string2.length();
+
+ if (str1Len == str2Len) {
+ throw new IllegalStateException("strings must be of different length");
+ }
+
+ if (str1Len > str2Len) {
+ return Arrays.asList(
+ string1,
+ string2
+ );
+ }
+
+ return Arrays.asList(string2, string1);
+ }
+
+ public static List generateIntSequence(int startingNumber, int itemsCount) {
+ if (itemsCount <= 0) {
+ throw new IllegalArgumentException("itemsCount must be greater than 0");
+ }
+
+ long finishNumber = new Long(startingNumber) + new Long(itemsCount);
+
+ if (finishNumber > Integer.MAX_VALUE) {
+ throw new IllegalArgumentException("can't generate an int greater than integer's max value");
+ }
+
+ List intSequence = new ArrayList();
+ for (int i = startingNumber; i < startingNumber + itemsCount; i++) {
+ intSequence.add(i);
+ }
+
+ return intSequence;
+ }
+}
+public class TestGenerateIntSequence {
+ @Test
+ public void testTheStringIsZero() throws Exception {
+ try {
+ ClassToBeTested.generateIntSequence(1,0);
+ Assert.fail("Method did not throw exception when itemsCount was 0");
+ } catch (IllegalArgumentException e) {
+ Assert.assertEquals("itemsCount must be greater than 0", e.getMessage());
+ }
+ }
+ @Test
+ public void testTheStringIsMaxValue() throws Exception {
+ try {
+ ClassToBeTested.generateIntSequence(2 147 483 648,10);
+ Assert.fail("Method did not throw exception when startingNumber was more than Integer.MAX_VALUE");
+ } catch (IllegalArgumentException e) {
+ Assert.assertEquals("can't generate an int greater than integer's max value", e.getMessage());
+ }
+ }
+}
+
+public class TestSortStringsByLength {
+ @Test
+ public void testTheFirstStringIsNull() throws Exception {
+ try {
+ ClassToBeTested.sortStringsByLength(null, "notEmptyString");
+ Assert.fail("Method did not throw exception when first string was null");
+ } catch (IllegalArgumentException e) {
+ Assert.assertEquals("string1 must not be null or empty", e.getMessage());
+ }
+ }
+ @Test
+ public void testTheSecondStringIsNull() throws Exception {
+ try {
+ ClassToBeTested.sortStringsByLength("notEmptyString",null);
+ Assert.fail("Method did not throw exception when second string was null");
+ } catch (IllegalArgumentException e) {
+ Assert.assertEquals("string2 must not be null or empty", e.getMessage());
+ }
+ }
+ @Test
+ public void testNotDifferentLength() throws Exception {
+ try {
+ ClassToBeTested.sortStringsByLength("notEmptyString","notEmptyString");
+ Assert.fail("Method did not throw exception when strings aren't different length");
+ } catch (IllegalArgumentException e) {
+ Assert.assertEquals("strings must be of different length", e.getMessage());
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/ru/odnoklassniki/ClassToBeTested.java b/src/main/java/ru/odnoklassniki/ClassToBeTested.java
index 15d7a44..7c69392 100644
--- a/src/main/java/ru/odnoklassniki/ClassToBeTested.java
+++ b/src/main/java/ru/odnoklassniki/ClassToBeTested.java
@@ -4,9 +4,7 @@
import java.util.Arrays;
import java.util.List;
-/**
- * Created by Maksim Egorichev on 4/12/18 at 1:53 AM
- */
+
public class ClassToBeTested {
private ClassToBeTested() {
diff --git a/src/test/java/ru/odnoklassniki/GenerateIntSequence/TestGenerateIntSequence.java b/src/test/java/ru/odnoklassniki/GenerateIntSequence/TestGenerateIntSequence.java
new file mode 100644
index 0000000..ecf2fac
--- /dev/null
+++ b/src/test/java/ru/odnoklassniki/GenerateIntSequence/TestGenerateIntSequence.java
@@ -0,0 +1,72 @@
+package ru.odnoklassniki.GenerateIntSequence;
+
+import org.junit.Assert;
+import org.junit.Test;
+import ru.odnoklassniki.ClassToBeTested;
+
+import java.util.List;
+
+import static org.hamcrest.Matchers.equalTo;
+import static org.hamcrest.Matchers.hasSize;
+
+public class TestGenerateIntSequence {
+ @Test
+ public void testTheStringIsZero() throws Exception {
+ try {
+ ClassToBeTested.generateIntSequence(1, 0);
+ Assert.fail("Method did not throw exception when itemsCount was 0");
+ } catch (IllegalArgumentException e) {
+ Assert.assertEquals("itemsCount must be greater than 0", e.getMessage());
+ }
+ }
+
+ @Test
+ public void testTheStringIsGreaterMaxInteger() throws Exception {
+ try {
+ ClassToBeTested.generateIntSequence(2147483647, 10);
+ Assert.fail("Method did not throw exception when startingNumber was more than Integer.MAX_VALUE");
+ } catch (IllegalArgumentException e) {
+ Assert.assertEquals("can't generate an int greater than integer's max value", e.getMessage());
+ }
+ }
+ @Test
+ public void testSumIsGreaterMaxIntegerFail() {
+
+ try {
+ ClassToBeTested.generateIntSequence(2147483647, 100);Assert.fail();
+ }
+
+ catch (IllegalArgumentException e) {
+ Assert.assertEquals("can't generate an int greater than integer's max value", e.getMessage());
+ }
+ }
+ @Test
+ public void testTheStringIsLessZero() throws Exception {
+ try {
+ ClassToBeTested.generateIntSequence(1, -10);
+ Assert.fail("Method did not throw exception when itemsCount was less 0");
+ } catch (IllegalArgumentException e) {
+ Assert.assertEquals("itemsCount must be greater than 0", e.getMessage());
+ }
+ }
+ @Test
+ public void testCorrectString() throws Exception {
+ final List Sequence = ClassToBeTested.generateIntSequence(0, 10);
+ Assert.assertNotNull(Sequence);
+ Assert.assertFalse(Sequence.isEmpty());
+
+
+ }
+
+ @Test
+ public void testCorrectSequenceCreation() throws Exception{
+ final List Result = ClassToBeTested.generateIntSequence(0, 10);
+ Assert.assertThat(
+ "The length of sequence isn't equal to 10",
+ Result, hasSize(equalTo(10)));
+ }
+
+
+
+}
+
diff --git a/target/classes/ru/odnoklassniki/ClassToBeTested.class b/target/classes/ru/odnoklassniki/ClassToBeTested.class
new file mode 100644
index 0000000..df7146d
Binary files /dev/null and b/target/classes/ru/odnoklassniki/ClassToBeTested.class differ
diff --git a/target/test-classes/ru/odnoklassniki/GenerateIntSequence/TestGenerateIntSequence.class b/target/test-classes/ru/odnoklassniki/GenerateIntSequence/TestGenerateIntSequence.class
new file mode 100644
index 0000000..ca93317
Binary files /dev/null and b/target/test-classes/ru/odnoklassniki/GenerateIntSequence/TestGenerateIntSequence.class differ
diff --git a/target/test-classes/ru/odnoklassniki/exampleTests/TestBeforeAndAfter.class b/target/test-classes/ru/odnoklassniki/exampleTests/TestBeforeAndAfter.class
new file mode 100644
index 0000000..ccb1042
Binary files /dev/null and b/target/test-classes/ru/odnoklassniki/exampleTests/TestBeforeAndAfter.class differ
diff --git a/target/test-classes/ru/odnoklassniki/exampleTests/TestBeforeClassAndAfterClass.class b/target/test-classes/ru/odnoklassniki/exampleTests/TestBeforeClassAndAfterClass.class
new file mode 100644
index 0000000..1ac784c
Binary files /dev/null and b/target/test-classes/ru/odnoklassniki/exampleTests/TestBeforeClassAndAfterClass.class differ
diff --git a/target/test-classes/ru/odnoklassniki/exampleTests/TestHamcrestMatchers.class b/target/test-classes/ru/odnoklassniki/exampleTests/TestHamcrestMatchers.class
new file mode 100644
index 0000000..9ff4c6a
Binary files /dev/null and b/target/test-classes/ru/odnoklassniki/exampleTests/TestHamcrestMatchers.class differ
diff --git a/target/test-classes/ru/odnoklassniki/exampleTests/TestSampleNegativeTest1.class b/target/test-classes/ru/odnoklassniki/exampleTests/TestSampleNegativeTest1.class
new file mode 100644
index 0000000..7990555
Binary files /dev/null and b/target/test-classes/ru/odnoklassniki/exampleTests/TestSampleNegativeTest1.class differ
diff --git a/target/test-classes/ru/odnoklassniki/exampleTests/TestSampleTest1.class b/target/test-classes/ru/odnoklassniki/exampleTests/TestSampleTest1.class
new file mode 100644
index 0000000..eefd3da
Binary files /dev/null and b/target/test-classes/ru/odnoklassniki/exampleTests/TestSampleTest1.class differ
diff --git a/target/test-classes/ru/odnoklassniki/stringSorter/TestStringSorter.class b/target/test-classes/ru/odnoklassniki/stringSorter/TestStringSorter.class
new file mode 100644
index 0000000..e1d243d
Binary files /dev/null and b/target/test-classes/ru/odnoklassniki/stringSorter/TestStringSorter.class differ
diff --git a/techno-atom-sample-1.iml b/techno-atom-sample-1.iml
new file mode 100644
index 0000000..988c706
--- /dev/null
+++ b/techno-atom-sample-1.iml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file