From 245c0966bb07f9433031c6a8133da23730a1c229 Mon Sep 17 00:00:00 2001
From: halilkrkn <42476890+halilkrkn@users.noreply.github.com>
Date: Thu, 20 Oct 2022 20:49:45 +0300
Subject: [PATCH 1/3] Create deploymentTargetDropDown.xml
---
.idea/deploymentTargetDropDown.xml | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
create mode 100644 .idea/deploymentTargetDropDown.xml
diff --git a/.idea/deploymentTargetDropDown.xml b/.idea/deploymentTargetDropDown.xml
new file mode 100644
index 0000000..d74a75c
--- /dev/null
+++ b/.idea/deploymentTargetDropDown.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
From b5e2b98ab1d7ad9ff8b5d7da3c104c301c9502b8 Mon Sep 17 00:00:00 2001
From: halilkrkn <42476890+halilkrkn@users.noreply.github.com>
Date: Thu, 20 Oct 2022 20:51:07 +0300
Subject: [PATCH 2/3] Update AddShoppingItemFragmentTest.kt
---
.../shoppingtesting/ui/views/AddShoppingItemFragmentTest.kt | 2 --
1 file changed, 2 deletions(-)
diff --git a/app/src/androidTest/java/com/example/shoppingtesting/ui/views/AddShoppingItemFragmentTest.kt b/app/src/androidTest/java/com/example/shoppingtesting/ui/views/AddShoppingItemFragmentTest.kt
index c48c7b5..9bd43e6 100644
--- a/app/src/androidTest/java/com/example/shoppingtesting/ui/views/AddShoppingItemFragmentTest.kt
+++ b/app/src/androidTest/java/com/example/shoppingtesting/ui/views/AddShoppingItemFragmentTest.kt
@@ -92,6 +92,4 @@ class AddShoppingItemFragmentTest {
assertThat(testViewModel.shoppingItem.getOrAwaitValue())
.contains(ShoppingItem("shopping item", 5, 5.5f, ""))
}
-
-
}
\ No newline at end of file
From ba12cad3ceb3d4435635c295611a61f0679a08cf Mon Sep 17 00:00:00 2001
From: halilkrkn <42476890+halilkrkn@users.noreply.github.com>
Date: Mon, 24 Oct 2022 18:17:23 +0300
Subject: [PATCH 3/3] Update AddShoppingItemFragmentTest.kt
- Added Fragment factory to costructor
---
.../shoppingtesting/ui/views/AddShoppingItemFragmentTest.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/src/androidTest/java/com/example/shoppingtesting/ui/views/AddShoppingItemFragmentTest.kt b/app/src/androidTest/java/com/example/shoppingtesting/ui/views/AddShoppingItemFragmentTest.kt
index 9bd43e6..6d5de08 100644
--- a/app/src/androidTest/java/com/example/shoppingtesting/ui/views/AddShoppingItemFragmentTest.kt
+++ b/app/src/androidTest/java/com/example/shoppingtesting/ui/views/AddShoppingItemFragmentTest.kt
@@ -56,7 +56,7 @@ class AddShoppingItemFragmentTest {
val navController = mock(NavController::class.java)
// Burada ilgili launchFragmentHiltContainer generic lambda fonksiyonu ile ilgili fragment olan AddShoppingItemFragment'i atadık ve bu fragment üzerinde NavController işlemlerinini kullanmayı ayarladık.
- launchFragmentHiltContainer {
+ launchFragmentHiltContainer(fragmentFactory = fragmentFactory){
Navigation.setViewNavController(requireView(), navController)
}