-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
74af356
commit 734a950
Showing
27 changed files
with
33 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
/** | ||
* | ||
* @author Gaetan Collaud <[email protected]> | ||
* @author Gaetan Collaud | ||
*/ | ||
public interface Constants { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
|
||
/** | ||
* | ||
* @author Gaetan Collaud <[email protected]> | ||
* @author Gaetan Collaud | ||
*/ | ||
@Slf4j | ||
public class SpringFxmlLoader { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
/** | ||
* | ||
* @author Gaetan Collaud <[email protected]> | ||
* @author Gaetan Collaud | ||
*/ | ||
public interface TODO { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
|
||
/** | ||
* | ||
* @author Gaetan Collaud <[email protected]> | ||
* @author Gaetan Collaud | ||
*/ | ||
@Component | ||
@Slf4j | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
|
||
/** | ||
* | ||
* @author Gaetan Collaud <[email protected]> | ||
* @author Gaetan Collaud | ||
*/ | ||
public enum ConfigKey { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ | |
/** | ||
* FXML Controller class | ||
* | ||
* @author Gaetan Collaud <[email protected]> | ||
* @author Gaetan Collaud | ||
*/ | ||
@Controller | ||
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ | |
/** | ||
* FXML Controller class | ||
* | ||
* @author Gaetan Collaud <[email protected]> | ||
* @author Gaetan Collaud | ||
*/ | ||
@Controller | ||
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ | |
/** | ||
* FXML Controller class | ||
* | ||
* @author Gaetan Collaud <[email protected]> | ||
* @author Gaetan Collaud | ||
*/ | ||
@Controller | ||
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
|
||
/** | ||
* | ||
* @author Gaetan Collaud <[email protected]> | ||
* @author Gaetan Collaud | ||
*/ | ||
public class CustomField { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
|
||
/** | ||
* | ||
* @author Gaetan Collaud <[email protected]> | ||
* @author Gaetan Collaud | ||
*/ | ||
@Getter | ||
@AllArgsConstructor | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
|
||
/** | ||
* | ||
* @author Gaetan Collaud <[email protected]> | ||
* @author Gaetan Collaud | ||
*/ | ||
@Getter | ||
@Setter(AccessLevel.PROTECTED) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
|
||
/** | ||
* | ||
* @author Gaetan Collaud <[email protected]> | ||
* @author Gaetan Collaud | ||
*/ | ||
@Setter | ||
@Getter | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
|
||
/** | ||
* | ||
* @author Gaetan Collaud <[email protected]> | ||
* @author Gaetan Collaud | ||
*/ | ||
@Service | ||
@Slf4j | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
/** | ||
* | ||
* @author Gaetan Collaud <[email protected]> | ||
* @author Gaetan Collaud | ||
*/ | ||
public enum GcodeFileStatus { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
/** | ||
* | ||
* @author Gaetan Collaud <[email protected]> | ||
* @author Gaetan Collaud | ||
*/ | ||
@Data | ||
@AllArgsConstructor | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
|
||
/** | ||
* | ||
* @author Gaetan Collaud <[email protected]> | ||
* @author Gaetan Collaud | ||
*/ | ||
@Service | ||
@Slf4j | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
/** | ||
* | ||
* @author Gaetan Collaud <[email protected]> | ||
* @author Gaetan Collaud | ||
*/ | ||
public enum Motor { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
|
||
/** | ||
* | ||
* @author Gaetan Collaud <[email protected]> | ||
* @author Gaetan Collaud | ||
*/ | ||
public enum PortStatus { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
|
||
/** | ||
* | ||
* @author Gaetan Collaud <[email protected]> | ||
* @author Gaetan Collaud | ||
*/ | ||
@Data | ||
@AllArgsConstructor | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ | |
|
||
/** | ||
* | ||
* @author Gaetan Collaud <[email protected]> | ||
* @author Gaetan Collaud | ||
*/ | ||
@Service | ||
@Slf4j | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
/** | ||
* | ||
* @author Gaetan Collaud <[email protected]> | ||
* @author Gaetan Collaud | ||
* @param <T> | ||
*/ | ||
public class Observable<T> { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
/** | ||
* | ||
* @author Gaetan Collaud <[email protected]> | ||
* @author Gaetan Collaud | ||
* @param <T> | ||
*/ | ||
public interface Observer<T> { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
|
||
/** | ||
* | ||
* @author Gaetan Collaud <[email protected]> | ||
* @author Gaetan Collaud | ||
*/ | ||
@UtilityClass | ||
public class DoubleParserUtil { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
|
||
/** | ||
* | ||
* @author Gaetan Collaud <[email protected]> | ||
* @author Gaetan Collaud | ||
*/ | ||
@UtilityClass | ||
public class FXUtils { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
|
||
/** | ||
* | ||
* @author Gaetan Collaud <[email protected]> | ||
* @author Gaetan Collaud | ||
*/ | ||
@UtilityClass | ||
public class GcodeValueParser { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,15 @@ | |
import java.util.ArrayList; | ||
import java.util.Arrays; | ||
import java.util.List; | ||
import java.util.Optional; | ||
import java.util.stream.Collectors; | ||
import org.junit.Before; | ||
import org.junit.Test; | ||
import static org.assertj.core.api.Assertions.*; | ||
|
||
/** | ||
* | ||
* @author Gaetan Collaud <[email protected]> | ||
* @author Gaetan Collaud | ||
*/ | ||
public class GcodeCommandTest { | ||
|
||
|
@@ -65,11 +67,12 @@ public void setup() { | |
.collect(Collectors.toList()); | ||
|
||
} | ||
|
||
@Test | ||
public void testParser(){ | ||
public void testParser() { | ||
lines.forEach(l -> { | ||
assertThat(GcodeCommand.parse(l).toString().trim()).isEqualTo(l.trim()); | ||
Optional<GcodeCommand> cmd = GcodeCommand.parse(l); | ||
cmd.ifPresent(c -> assertThat(c.toString().trim()).isEqualTo(l.trim())); | ||
}); | ||
} | ||
|
||
|