How to check if Airpods are connected to iPhone?












0















I am trying to check if AirPods are connected to the iPhone. How can I check it programmatically?



For airpods port.portType value is .builtInMic which is not sufficient to check if airpods are connected to iphone



class func isMicAvailbale() -> Bool{
let availableInputs:[AVAudioSessionPortDescription] = AVAudioSession.sharedInstance().availableInputs ??
var micPresent = false;
for port in availableInputs
{
if port.portType == .builtInMic{
micPresent = true
}
}
return micPresent
}









share|improve this question























  • Hey I edited my answer, I quite lied a bit before, I didn't know Airpods were not Apple MFI. Sorry for your timeloss :(

    – Dominik Bucher
    Jan 4 at 1:36
















0















I am trying to check if AirPods are connected to the iPhone. How can I check it programmatically?



For airpods port.portType value is .builtInMic which is not sufficient to check if airpods are connected to iphone



class func isMicAvailbale() -> Bool{
let availableInputs:[AVAudioSessionPortDescription] = AVAudioSession.sharedInstance().availableInputs ??
var micPresent = false;
for port in availableInputs
{
if port.portType == .builtInMic{
micPresent = true
}
}
return micPresent
}









share|improve this question























  • Hey I edited my answer, I quite lied a bit before, I didn't know Airpods were not Apple MFI. Sorry for your timeloss :(

    – Dominik Bucher
    Jan 4 at 1:36














0












0








0








I am trying to check if AirPods are connected to the iPhone. How can I check it programmatically?



For airpods port.portType value is .builtInMic which is not sufficient to check if airpods are connected to iphone



class func isMicAvailbale() -> Bool{
let availableInputs:[AVAudioSessionPortDescription] = AVAudioSession.sharedInstance().availableInputs ??
var micPresent = false;
for port in availableInputs
{
if port.portType == .builtInMic{
micPresent = true
}
}
return micPresent
}









share|improve this question














I am trying to check if AirPods are connected to the iPhone. How can I check it programmatically?



For airpods port.portType value is .builtInMic which is not sufficient to check if airpods are connected to iphone



class func isMicAvailbale() -> Bool{
let availableInputs:[AVAudioSessionPortDescription] = AVAudioSession.sharedInstance().availableInputs ??
var micPresent = false;
for port in availableInputs
{
if port.portType == .builtInMic{
micPresent = true
}
}
return micPresent
}






swift airpods






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 2 at 23:37









Pooja ThakoorPooja Thakoor

41




41













  • Hey I edited my answer, I quite lied a bit before, I didn't know Airpods were not Apple MFI. Sorry for your timeloss :(

    – Dominik Bucher
    Jan 4 at 1:36



















  • Hey I edited my answer, I quite lied a bit before, I didn't know Airpods were not Apple MFI. Sorry for your timeloss :(

    – Dominik Bucher
    Jan 4 at 1:36

















Hey I edited my answer, I quite lied a bit before, I didn't know Airpods were not Apple MFI. Sorry for your timeloss :(

– Dominik Bucher
Jan 4 at 1:36





Hey I edited my answer, I quite lied a bit before, I didn't know Airpods were not Apple MFI. Sorry for your timeloss :(

– Dominik Bucher
Jan 4 at 1:36












1 Answer
1






active

oldest

votes


















1














One way that comes to my mind is that you could use Core Bluetooth API to access the airpods via Bluetooth. But this might be overkill when you can use AVSession. I don't know why exactly you want to detect just airpods and no other bluetooth headphones. But I think buildInMic stands for buildIn microphone inside the device and not the bluetooth device :P If you take a look into docs you can see it :P



You didn't ask for other bluetooth headset, but as part of the answer I will provide you this code, this should work for non MFI headsets connected to iPhone via Bluetooth.



Now to the Airpod part.



You probably want to use ExternalAccessory.framework to communicate with the MFI bluetooth devices such as Airpods.~~



I haven't been working with EAAccessory yet but I believe you have to do something like this:




  1. Create instance of EAAccessoryManager

  2. Use that instance to get the connected devices

  3. Find airpods via some ID

  4. Figure out how to check if the accessory is connected, but this should be piece of cake.


Also very important step is to add UISupportedExternalAccessoryProtocols to your info.plist file



I am bit tired so if you have any questions ask, tommorow I will write the implementation in here if no-one will be faster.





Okay so obviously my answer was totally wrong on the first place.



I have learned today that Airpods aren't listed in apple's MFI devices so the ExternalAccessorymanager won't obviously work. As stated in the answer mentioned in the footer, all you need to do is to add category to the AVSession.



So the whole code is basically in here :D



 let session = AVAudioSession.sharedInstance()
try! session.setCategory(.playAndRecord, mode: .default, options: .allowBluetooth)
guard let availableInputs = session.availableInputs else { return }
for input in availableInputs {
if input.portType == .bluetoothHFP {
// Do your stuff...
}
}


prove:



2019-01-04 02:32:13.462093+0100 Accessory games[24578:5411208] [avas] AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Butcher’s AirPods (type: BluetoothHFP)
(lldb) po availableInputs
▿ 2 elements
- 0 : <AVAudioSessionPortDescription: 0x283b401b0, type = MicrophoneBuiltIn; name = iPhone Mikrofon; UID = Built-In Microphone; selectedDataSource = Vpředu>
- 1 : <AVAudioSessionPortDescription: 0x283b40250, type = BluetoothHFP; name = Butcher’s AirPods; UID = 10:94:BB:5D:5F:F7-tsco; selectedDataSource = (null)>

(lldb) po availableInputs[1].portName
"Butcher’s AirPods"

(lldb) po availableInputs[1].portType
▿ AVAudioSessionPort
- _rawValue : BluetoothHFP

(lldb)


Sorry for misunderstanding and writing totally offtopic answer. But hey, at least you know something about external accessories :)



Also you might want to take a look in here






share|improve this answer


























  • Thanks a lot... this works

    – Pooja Thakoor
    Jan 4 at 23:09











  • Everything works but I keep getting this error in console AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Pooja’s AirPods (type: BluetoothHFP)

    – Pooja Thakoor
    Jan 4 at 23:10











  • this error is okay its just on apple side, you can set the datasource via some methods

    – Dominik Bucher
    Jan 4 at 23:13











  • This one just tells me whether airpods are connected to iphone, how will i come to whether the airpods are actually inside someone's ears

    – Pooja Thakoor
    Jan 13 at 22:17











  • This is not a correct answer. This check is positive about any Bluetooth headset, not exclusively Air Pods

    – rommex
    Mar 19 at 13:26












Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54014593%2fhow-to-check-if-airpods-are-connected-to-iphone%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














One way that comes to my mind is that you could use Core Bluetooth API to access the airpods via Bluetooth. But this might be overkill when you can use AVSession. I don't know why exactly you want to detect just airpods and no other bluetooth headphones. But I think buildInMic stands for buildIn microphone inside the device and not the bluetooth device :P If you take a look into docs you can see it :P



You didn't ask for other bluetooth headset, but as part of the answer I will provide you this code, this should work for non MFI headsets connected to iPhone via Bluetooth.



Now to the Airpod part.



You probably want to use ExternalAccessory.framework to communicate with the MFI bluetooth devices such as Airpods.~~



I haven't been working with EAAccessory yet but I believe you have to do something like this:




  1. Create instance of EAAccessoryManager

  2. Use that instance to get the connected devices

  3. Find airpods via some ID

  4. Figure out how to check if the accessory is connected, but this should be piece of cake.


Also very important step is to add UISupportedExternalAccessoryProtocols to your info.plist file



I am bit tired so if you have any questions ask, tommorow I will write the implementation in here if no-one will be faster.





Okay so obviously my answer was totally wrong on the first place.



I have learned today that Airpods aren't listed in apple's MFI devices so the ExternalAccessorymanager won't obviously work. As stated in the answer mentioned in the footer, all you need to do is to add category to the AVSession.



So the whole code is basically in here :D



 let session = AVAudioSession.sharedInstance()
try! session.setCategory(.playAndRecord, mode: .default, options: .allowBluetooth)
guard let availableInputs = session.availableInputs else { return }
for input in availableInputs {
if input.portType == .bluetoothHFP {
// Do your stuff...
}
}


prove:



2019-01-04 02:32:13.462093+0100 Accessory games[24578:5411208] [avas] AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Butcher’s AirPods (type: BluetoothHFP)
(lldb) po availableInputs
▿ 2 elements
- 0 : <AVAudioSessionPortDescription: 0x283b401b0, type = MicrophoneBuiltIn; name = iPhone Mikrofon; UID = Built-In Microphone; selectedDataSource = Vpředu>
- 1 : <AVAudioSessionPortDescription: 0x283b40250, type = BluetoothHFP; name = Butcher’s AirPods; UID = 10:94:BB:5D:5F:F7-tsco; selectedDataSource = (null)>

(lldb) po availableInputs[1].portName
"Butcher’s AirPods"

(lldb) po availableInputs[1].portType
▿ AVAudioSessionPort
- _rawValue : BluetoothHFP

(lldb)


Sorry for misunderstanding and writing totally offtopic answer. But hey, at least you know something about external accessories :)



Also you might want to take a look in here






share|improve this answer


























  • Thanks a lot... this works

    – Pooja Thakoor
    Jan 4 at 23:09











  • Everything works but I keep getting this error in console AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Pooja’s AirPods (type: BluetoothHFP)

    – Pooja Thakoor
    Jan 4 at 23:10











  • this error is okay its just on apple side, you can set the datasource via some methods

    – Dominik Bucher
    Jan 4 at 23:13











  • This one just tells me whether airpods are connected to iphone, how will i come to whether the airpods are actually inside someone's ears

    – Pooja Thakoor
    Jan 13 at 22:17











  • This is not a correct answer. This check is positive about any Bluetooth headset, not exclusively Air Pods

    – rommex
    Mar 19 at 13:26
















1














One way that comes to my mind is that you could use Core Bluetooth API to access the airpods via Bluetooth. But this might be overkill when you can use AVSession. I don't know why exactly you want to detect just airpods and no other bluetooth headphones. But I think buildInMic stands for buildIn microphone inside the device and not the bluetooth device :P If you take a look into docs you can see it :P



You didn't ask for other bluetooth headset, but as part of the answer I will provide you this code, this should work for non MFI headsets connected to iPhone via Bluetooth.



Now to the Airpod part.



You probably want to use ExternalAccessory.framework to communicate with the MFI bluetooth devices such as Airpods.~~



I haven't been working with EAAccessory yet but I believe you have to do something like this:




  1. Create instance of EAAccessoryManager

  2. Use that instance to get the connected devices

  3. Find airpods via some ID

  4. Figure out how to check if the accessory is connected, but this should be piece of cake.


Also very important step is to add UISupportedExternalAccessoryProtocols to your info.plist file



I am bit tired so if you have any questions ask, tommorow I will write the implementation in here if no-one will be faster.





Okay so obviously my answer was totally wrong on the first place.



I have learned today that Airpods aren't listed in apple's MFI devices so the ExternalAccessorymanager won't obviously work. As stated in the answer mentioned in the footer, all you need to do is to add category to the AVSession.



So the whole code is basically in here :D



 let session = AVAudioSession.sharedInstance()
try! session.setCategory(.playAndRecord, mode: .default, options: .allowBluetooth)
guard let availableInputs = session.availableInputs else { return }
for input in availableInputs {
if input.portType == .bluetoothHFP {
// Do your stuff...
}
}


prove:



2019-01-04 02:32:13.462093+0100 Accessory games[24578:5411208] [avas] AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Butcher’s AirPods (type: BluetoothHFP)
(lldb) po availableInputs
▿ 2 elements
- 0 : <AVAudioSessionPortDescription: 0x283b401b0, type = MicrophoneBuiltIn; name = iPhone Mikrofon; UID = Built-In Microphone; selectedDataSource = Vpředu>
- 1 : <AVAudioSessionPortDescription: 0x283b40250, type = BluetoothHFP; name = Butcher’s AirPods; UID = 10:94:BB:5D:5F:F7-tsco; selectedDataSource = (null)>

(lldb) po availableInputs[1].portName
"Butcher’s AirPods"

(lldb) po availableInputs[1].portType
▿ AVAudioSessionPort
- _rawValue : BluetoothHFP

(lldb)


Sorry for misunderstanding and writing totally offtopic answer. But hey, at least you know something about external accessories :)



Also you might want to take a look in here






share|improve this answer


























  • Thanks a lot... this works

    – Pooja Thakoor
    Jan 4 at 23:09











  • Everything works but I keep getting this error in console AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Pooja’s AirPods (type: BluetoothHFP)

    – Pooja Thakoor
    Jan 4 at 23:10











  • this error is okay its just on apple side, you can set the datasource via some methods

    – Dominik Bucher
    Jan 4 at 23:13











  • This one just tells me whether airpods are connected to iphone, how will i come to whether the airpods are actually inside someone's ears

    – Pooja Thakoor
    Jan 13 at 22:17











  • This is not a correct answer. This check is positive about any Bluetooth headset, not exclusively Air Pods

    – rommex
    Mar 19 at 13:26














1












1








1







One way that comes to my mind is that you could use Core Bluetooth API to access the airpods via Bluetooth. But this might be overkill when you can use AVSession. I don't know why exactly you want to detect just airpods and no other bluetooth headphones. But I think buildInMic stands for buildIn microphone inside the device and not the bluetooth device :P If you take a look into docs you can see it :P



You didn't ask for other bluetooth headset, but as part of the answer I will provide you this code, this should work for non MFI headsets connected to iPhone via Bluetooth.



Now to the Airpod part.



You probably want to use ExternalAccessory.framework to communicate with the MFI bluetooth devices such as Airpods.~~



I haven't been working with EAAccessory yet but I believe you have to do something like this:




  1. Create instance of EAAccessoryManager

  2. Use that instance to get the connected devices

  3. Find airpods via some ID

  4. Figure out how to check if the accessory is connected, but this should be piece of cake.


Also very important step is to add UISupportedExternalAccessoryProtocols to your info.plist file



I am bit tired so if you have any questions ask, tommorow I will write the implementation in here if no-one will be faster.





Okay so obviously my answer was totally wrong on the first place.



I have learned today that Airpods aren't listed in apple's MFI devices so the ExternalAccessorymanager won't obviously work. As stated in the answer mentioned in the footer, all you need to do is to add category to the AVSession.



So the whole code is basically in here :D



 let session = AVAudioSession.sharedInstance()
try! session.setCategory(.playAndRecord, mode: .default, options: .allowBluetooth)
guard let availableInputs = session.availableInputs else { return }
for input in availableInputs {
if input.portType == .bluetoothHFP {
// Do your stuff...
}
}


prove:



2019-01-04 02:32:13.462093+0100 Accessory games[24578:5411208] [avas] AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Butcher’s AirPods (type: BluetoothHFP)
(lldb) po availableInputs
▿ 2 elements
- 0 : <AVAudioSessionPortDescription: 0x283b401b0, type = MicrophoneBuiltIn; name = iPhone Mikrofon; UID = Built-In Microphone; selectedDataSource = Vpředu>
- 1 : <AVAudioSessionPortDescription: 0x283b40250, type = BluetoothHFP; name = Butcher’s AirPods; UID = 10:94:BB:5D:5F:F7-tsco; selectedDataSource = (null)>

(lldb) po availableInputs[1].portName
"Butcher’s AirPods"

(lldb) po availableInputs[1].portType
▿ AVAudioSessionPort
- _rawValue : BluetoothHFP

(lldb)


Sorry for misunderstanding and writing totally offtopic answer. But hey, at least you know something about external accessories :)



Also you might want to take a look in here






share|improve this answer















One way that comes to my mind is that you could use Core Bluetooth API to access the airpods via Bluetooth. But this might be overkill when you can use AVSession. I don't know why exactly you want to detect just airpods and no other bluetooth headphones. But I think buildInMic stands for buildIn microphone inside the device and not the bluetooth device :P If you take a look into docs you can see it :P



You didn't ask for other bluetooth headset, but as part of the answer I will provide you this code, this should work for non MFI headsets connected to iPhone via Bluetooth.



Now to the Airpod part.



You probably want to use ExternalAccessory.framework to communicate with the MFI bluetooth devices such as Airpods.~~



I haven't been working with EAAccessory yet but I believe you have to do something like this:




  1. Create instance of EAAccessoryManager

  2. Use that instance to get the connected devices

  3. Find airpods via some ID

  4. Figure out how to check if the accessory is connected, but this should be piece of cake.


Also very important step is to add UISupportedExternalAccessoryProtocols to your info.plist file



I am bit tired so if you have any questions ask, tommorow I will write the implementation in here if no-one will be faster.





Okay so obviously my answer was totally wrong on the first place.



I have learned today that Airpods aren't listed in apple's MFI devices so the ExternalAccessorymanager won't obviously work. As stated in the answer mentioned in the footer, all you need to do is to add category to the AVSession.



So the whole code is basically in here :D



 let session = AVAudioSession.sharedInstance()
try! session.setCategory(.playAndRecord, mode: .default, options: .allowBluetooth)
guard let availableInputs = session.availableInputs else { return }
for input in availableInputs {
if input.portType == .bluetoothHFP {
// Do your stuff...
}
}


prove:



2019-01-04 02:32:13.462093+0100 Accessory games[24578:5411208] [avas] AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Butcher’s AirPods (type: BluetoothHFP)
(lldb) po availableInputs
▿ 2 elements
- 0 : <AVAudioSessionPortDescription: 0x283b401b0, type = MicrophoneBuiltIn; name = iPhone Mikrofon; UID = Built-In Microphone; selectedDataSource = Vpředu>
- 1 : <AVAudioSessionPortDescription: 0x283b40250, type = BluetoothHFP; name = Butcher’s AirPods; UID = 10:94:BB:5D:5F:F7-tsco; selectedDataSource = (null)>

(lldb) po availableInputs[1].portName
"Butcher’s AirPods"

(lldb) po availableInputs[1].portType
▿ AVAudioSessionPort
- _rawValue : BluetoothHFP

(lldb)


Sorry for misunderstanding and writing totally offtopic answer. But hey, at least you know something about external accessories :)



Also you might want to take a look in here







share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 4 at 1:35

























answered Jan 3 at 2:24









Dominik BucherDominik Bucher

1,2622819




1,2622819













  • Thanks a lot... this works

    – Pooja Thakoor
    Jan 4 at 23:09











  • Everything works but I keep getting this error in console AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Pooja’s AirPods (type: BluetoothHFP)

    – Pooja Thakoor
    Jan 4 at 23:10











  • this error is okay its just on apple side, you can set the datasource via some methods

    – Dominik Bucher
    Jan 4 at 23:13











  • This one just tells me whether airpods are connected to iphone, how will i come to whether the airpods are actually inside someone's ears

    – Pooja Thakoor
    Jan 13 at 22:17











  • This is not a correct answer. This check is positive about any Bluetooth headset, not exclusively Air Pods

    – rommex
    Mar 19 at 13:26



















  • Thanks a lot... this works

    – Pooja Thakoor
    Jan 4 at 23:09











  • Everything works but I keep getting this error in console AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Pooja’s AirPods (type: BluetoothHFP)

    – Pooja Thakoor
    Jan 4 at 23:10











  • this error is okay its just on apple side, you can set the datasource via some methods

    – Dominik Bucher
    Jan 4 at 23:13











  • This one just tells me whether airpods are connected to iphone, how will i come to whether the airpods are actually inside someone's ears

    – Pooja Thakoor
    Jan 13 at 22:17











  • This is not a correct answer. This check is positive about any Bluetooth headset, not exclusively Air Pods

    – rommex
    Mar 19 at 13:26

















Thanks a lot... this works

– Pooja Thakoor
Jan 4 at 23:09





Thanks a lot... this works

– Pooja Thakoor
Jan 4 at 23:09













Everything works but I keep getting this error in console AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Pooja’s AirPods (type: BluetoothHFP)

– Pooja Thakoor
Jan 4 at 23:10





Everything works but I keep getting this error in console AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Pooja’s AirPods (type: BluetoothHFP)

– Pooja Thakoor
Jan 4 at 23:10













this error is okay its just on apple side, you can set the datasource via some methods

– Dominik Bucher
Jan 4 at 23:13





this error is okay its just on apple side, you can set the datasource via some methods

– Dominik Bucher
Jan 4 at 23:13













This one just tells me whether airpods are connected to iphone, how will i come to whether the airpods are actually inside someone's ears

– Pooja Thakoor
Jan 13 at 22:17





This one just tells me whether airpods are connected to iphone, how will i come to whether the airpods are actually inside someone's ears

– Pooja Thakoor
Jan 13 at 22:17













This is not a correct answer. This check is positive about any Bluetooth headset, not exclusively Air Pods

– rommex
Mar 19 at 13:26





This is not a correct answer. This check is positive about any Bluetooth headset, not exclusively Air Pods

– rommex
Mar 19 at 13:26




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54014593%2fhow-to-check-if-airpods-are-connected-to-iphone%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

MongoDB - Not Authorized To Execute Command

How to fix TextFormField cause rebuild widget in Flutter

in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith