@@ -529,7 +529,7 @@ public void testCreateIntent() { |
529 | 529 | String intentName = "Hello" + UUID.randomUUID().toString(); // gotta be unique |
530 | 530 | String intentDescription = "Description of " + intentName; |
531 | 531 | String intentExample = "Example of " + intentName; |
532 | | - List<CreateExample> intentExamples = new ArrayList<>(); |
| 532 | + List<CreateExample> intentExamples = new ArrayList<CreateExample>(); |
533 | 533 | intentExamples.add(new CreateExample.Builder().text(intentExample).build()); |
534 | 534 |
|
535 | 535 | Date start = new Date(); |
@@ -604,7 +604,7 @@ public void testGetIntent() { |
604 | 604 | String intentName = "Hello" + UUID.randomUUID().toString(); // gotta be unique |
605 | 605 | String intentDescription = "Description of " + intentName; |
606 | 606 | String intentExample = "Example of " + intentName; |
607 | | - List<CreateExample> intentExamples = new ArrayList<>(); |
| 607 | + List<CreateExample> intentExamples = new ArrayList<CreateExample>(); |
608 | 608 | intentExamples.add(new CreateExample.Builder().text(intentExample).build()); |
609 | 609 |
|
610 | 610 | Date start = new Date(); |
@@ -663,7 +663,7 @@ public void testListIntents() { |
663 | 663 | // Now add an intent and make sure we get it back |
664 | 664 | String intentDescription = "Description of " + intentName; |
665 | 665 | String intentExample = "Example of " + intentName; |
666 | | - List<CreateExample> intentExamples = new ArrayList<>(); |
| 666 | + List<CreateExample> intentExamples = new ArrayList<CreateExample>(); |
667 | 667 | intentExamples.add(new CreateExample.Builder().text(intentExample).build()); |
668 | 668 |
|
669 | 669 | Date start = new Date(); |
@@ -717,15 +717,15 @@ public void testUpdateIntent() { |
717 | 717 | String intentName = "Hello" + UUID.randomUUID().toString(); // gotta be unique |
718 | 718 | String intentDescription = "Description of " + intentName; |
719 | 719 | String intentExample = "Example of " + intentName; |
720 | | - List<CreateExample> intentExamples = new ArrayList<>(); |
| 720 | + List<CreateExample> intentExamples = new ArrayList<CreateExample>(); |
721 | 721 | intentExamples.add(new CreateExample.Builder().text(intentExample).build()); |
722 | 722 |
|
723 | 723 | service.createIntent(workspaceId, intentName, intentDescription, intentExamples).execute(); |
724 | 724 |
|
725 | 725 | try { |
726 | 726 | String intentDescription2 = "Updated description of " + intentName; |
727 | 727 | String intentExample2 = "Updated Example of " + intentName; |
728 | | - List<CreateExample> intentExamples2 = new ArrayList<>(); |
| 728 | + List<CreateExample> intentExamples2 = new ArrayList<CreateExample>(); |
729 | 729 | intentExamples2.add(new CreateExample.Builder().text(intentExample2).build()); |
730 | 730 | Date start = new Date(); |
731 | 731 | IntentResponse response = service.updateIntent(workspaceId, intentName, null, intentDescription2, |
@@ -776,16 +776,16 @@ public void testCreateWorkspace() { |
776 | 776 | String workspaceLanguage = "en"; |
777 | 777 |
|
778 | 778 | // metadata |
779 | | - Map<String, Object> workspaceMetadata = new HashMap<>(); |
| 779 | + Map<String, Object> workspaceMetadata = new HashMap<String, Object>(); |
780 | 780 | String metadataValue = "value for " + workspaceName; |
781 | 781 | workspaceMetadata.put("key", metadataValue); |
782 | 782 |
|
783 | 783 | // intents |
784 | | - List<CreateIntent> workspaceIntents = new ArrayList<>(); |
| 784 | + List<CreateIntent> workspaceIntents = new ArrayList<CreateIntent>(); |
785 | 785 | String intentName = "Hello" + UUID.randomUUID().toString(); // gotta be unique |
786 | 786 | String intentDescription = "Description of " + intentName; |
787 | 787 | String intentExample = "Example of " + intentName; |
788 | | - List<CreateExample> intentExamples = new ArrayList<>(); |
| 788 | + List<CreateExample> intentExamples = new ArrayList<CreateExample>(); |
789 | 789 | intentExamples.add(new CreateExample.Builder().text(intentExample).build()); |
790 | 790 | workspaceIntents.add(new CreateIntent.Builder() |
791 | 791 | .intent(intentName) |
@@ -794,13 +794,13 @@ public void testCreateWorkspace() { |
794 | 794 | .build()); |
795 | 795 |
|
796 | 796 | // entities |
797 | | - List<CreateEntity> workspaceEntities = new ArrayList<>(); |
| 797 | + List<CreateEntity> workspaceEntities = new ArrayList<CreateEntity>(); |
798 | 798 | // String entityName = "Hello" + UUID.randomUUID().toString(); // gotta be unique |
799 | 799 | // String entityDescription = "Description of " + entityName; |
800 | 800 | // String entitySource = "Source for " + entityName; |
801 | 801 | // String entityValue = "Value of " + entityName; |
802 | 802 | // String entityValueSynonym = "Synonym for Value of " + entityName; |
803 | | -// List<CreateValue> entityValues = new ArrayList<>(); |
| 803 | +// List<CreateValue> entityValues = new ArrayList<CreateValue>(); |
804 | 804 | // entityValues.add(new CreateValue.Builder() |
805 | 805 | // .value(entityValue) |
806 | 806 | // .synonyms(entityValueSynonym) |
@@ -813,7 +813,7 @@ public void testCreateWorkspace() { |
813 | 813 | // .build()); |
814 | 814 |
|
815 | 815 | // counterexamples |
816 | | - List<CreateExample> workspaceCounterExamples = new ArrayList<>(); |
| 816 | + List<CreateExample> workspaceCounterExamples = new ArrayList<CreateExample>(); |
817 | 817 | String counterExampleText = "Counterexample for " + workspaceName; |
818 | 818 | workspaceCounterExamples.add(new CreateExample.Builder().text(counterExampleText).build()); |
819 | 819 |
|
|