input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
shouldSkipNullPropertyValuesWhenCreatingAccumuloKey ( ) { final uk . gov . gchq . gaffer . data . element . Edge edge = new uk . gov . gchq . gaffer . data . element . Edge . Builder ( ) . group ( TestGroups . EDGE ) . source ( "1" ) . dest ( "2" ) . directed ( true ) . property ( AccumuloPropertyNames . COLUMN_QUALIFI...
org . junit . Assert . assertEquals ( null , properties . get ( AccumuloPropertyNames . COLUMN_QUALIFIER ) )
testNonExistingEngineRetrieval ( ) { org . camunda . bpm . ProcessEngineService engineService = org . camunda . bpm . BpmPlatform . getProcessEngineService ( ) ; org . camunda . bpm . engine . ProcessEngine engine = engineService . getProcessEngine ( "aNonExistingEngineName" ) ; "<AssertPlaceHolder>" ; } getProcessEngi...
org . junit . Assert . assertNull ( engine )
testGetMapAsPrettyString ( ) { final java . util . Map testMap = org . pentaho . platform . util . StringUtilTest . getTestMap ( ) ; final java . lang . String output = org . pentaho . platform . util . StringUtil . getMapAsPrettyString ( testMap ) ; final java . lang . String expectedOutput = getExpectedPrettyMapOutpu...
org . junit . Assert . assertEquals ( expectedOutput , output )
testGetMaximum ( ) { "<AssertPlaceHolder>" ; } getMaximum ( ) { return max ; }
org . junit . Assert . assertEquals ( max , range . getMaximum ( ) )
issuerIsCorrect ( ) { java . lang . String issuer = "O=SAML2<sp>Burp<sp>Plugin<sp>Test,<sp>CN=saml.lan" ; "<AssertPlaceHolder>" ; } getIssuer ( ) { return certificate . getIssuerX500Principal ( ) . toString ( ) ; }
org . junit . Assert . assertEquals ( issuer , certificate . getIssuer ( ) )
testNonNotifyingCompoundCommand ( ) { final java . lang . String [ ] expectedPropertyName = new java . lang . String [ 2 ] ; expectedPropertyName [ 0 ] = com . archimatetool . editor . model . IEditorModelManager . PROPERTY_ECORE_EVENTS_START ; expectedPropertyName [ 1 ] = com . archimatetool . editor . model . IEditor...
org . junit . Assert . assertEquals ( expectedPropertyName [ sequence ] , evt . getPropertyName ( ) )
shouldCopyUnicodeStringToEndOfByteBuffer ( ) { byte [ ] buffer = new byte [ 10 ] ; java . util . Arrays . fill ( buffer , ( ( byte ) ( 0 ) ) ) ; java . lang . String s = "γειά" ; com . mpatric . mp3agic . BufferTools . stringIntoByteBuffer ( s , 0 , s . length ( ) , buffer , 2 , "UTF-16BE" ) ; byte [ ] expectedBuffer =...
org . junit . Assert . assertArrayEquals ( expectedBuffer , buffer )
parseAbsoluteLengthFrom10pt ( ) { java . lang . String value = "10pt" ; float actual = com . itextpdf . styledxmlparser . css . util . CssUtils . parseAbsoluteLength ( value , CommonCssConstants . PT ) ; float expected = 10.0F ; "<AssertPlaceHolder>" ; } parseAbsoluteLength ( java . lang . String , java . lang . String...
org . junit . Assert . assertEquals ( expected , actual , 0 )
testBulkMutate ( ) { java . lang . String tableName = "testBulkMutate" ; createTable ( tableName ) ; java . lang . String bulkId = java . util . UUID . randomUUID ( ) . toString ( ) ; org . apache . blur . thrift . generated . Blur . Iface client = getClient ( ) ; client . bulkMutateStart ( bulkId ) ; int batchSize = 1...
org . junit . Assert . assertEquals ( total , tableStats . getRecordCount ( ) )
testCase60 ( ) { org . evosuite . testcase . DefaultTestCase tc = buildTestCase60 ( ) ; java . util . List < org . evosuite . symbolic . BranchCondition > branch_conditions = executeTest ( tc ) ; "<AssertPlaceHolder>" ; } size ( ) { return theTest . size ( ) ; }
org . junit . Assert . assertEquals ( 1 , branch_conditions . size ( ) )
testEncodeURLTxPowerAboveMax ( ) { org . eclipse . kura . internal . ble . eddystone . BluetoothLeEddystoneEncoderImpl encoder = new org . eclipse . kura . internal . ble . eddystone . BluetoothLeEddystoneEncoderImpl ( ) ; org . eclipse . kura . ble . eddystone . BluetoothLeEddystone beacon = new org . eclipse . kura ....
org . junit . Assert . assertArrayEquals ( expected , encoded )
testRemoveValidatorOnZeroSpot ( ) { "<AssertPlaceHolder>" ; } removeValidator ( com . tech . configurations . tools . ValidationScopes , int ) { if ( i == 0 ) { return false ; } switch ( scope ) { case ROOM_NAME : if ( ( com . tech . models . dtos . MessageDTO . CHATROOM_NAME_VALIDATORS . size ( ) ) >= ( i + 1 ) ) { co...
org . junit . Assert . assertFalse ( com . tech . models . dtos . MessageDTO . removeValidator ( ValidationScopes . USER_NAME , 0 ) )
testHeteroSubT ( ) { org . openscience . cdk . isomorphism . matchers . Expr expr = new org . openscience . cdk . isomorphism . matchers . Expr ( HETERO_SUBSTITUENT_COUNT , 1 ) ; org . openscience . cdk . interfaces . IAtom atom = mock ( org . openscience . cdk . interfaces . IAtom . class ) ; org . openscience . cdk ....
org . junit . Assert . assertTrue ( expr . matches ( atom ) )
testGetRANGERESBY ( ) { java . lang . String actual = table . getRANGERESBY ( ) ; java . lang . String expected = ":->" ; "<AssertPlaceHolder>" ; } getRANGERESBY ( ) { return ":->" ; }
org . junit . Assert . assertEquals ( expected , actual )
hasVariableLocationShouldBeTrue ( ) { com . graphhopper . jsprit . core . problem . job . Break aBreak = ( ( com . graphhopper . jsprit . core . problem . job . Break ) ( serviceActivity . getJob ( ) ) ) ; "<AssertPlaceHolder>" ; } hasVariableLocation ( ) { return variableLocation ; }
org . junit . Assert . assertTrue ( aBreak . hasVariableLocation ( ) )
testUpdate ( ) { org . hisp . dhis . metadata . version . MetadataVersion metadataVersion = new org . hisp . dhis . metadata . version . MetadataVersion ( "version1" , org . hisp . dhis . metadata . version . VersionType . ATOMIC ) ; metadataVersion . setHashCode ( "12345" ) ; metadataVersionStore . save ( metadataVers...
org . junit . Assert . assertNotNull ( metadataVersionStore . getVersionByName ( "newVersion" ) )
rejectForEach ( ) { org . eclipse . collections . api . LazyIterable < java . lang . Integer > select = org . eclipse . collections . impl . utility . LazyIterate . reject ( org . eclipse . collections . impl . list . Interval . oneTo ( 5 ) , org . eclipse . collections . impl . block . factory . Predicates . lessThan ...
org . junit . Assert . assertEquals ( 5 , sum )
test ( ) { com . github . knightliao . canalx . core . plugin . injector . template . IInjectEventProcessOperator injectEventProcessOperator = new com . github . knightliao . canalx . core . plugin . injector . template . InjectorEventProcessTemplate ( new com . github . knightliao . canalx . core . plugin . injector ....
org . junit . Assert . assertTrue ( false )
noInstancesGenerated2 ( ) { biweekly . util . Recurrence recur = new biweekly . util . Recurrence . Builder ( biweekly . util . Frequency . YEARLY ) . byMonth ( 2 ) . byMonthDay ( 30 ) . build ( ) ; biweekly . util . com . google . ical . values . DateValue start = new biweekly . util . com . google . ical . values . D...
org . junit . Assert . assertFalse ( it . hasNext ( ) )
testBuildWithDisabledStatusCOnstraint ( ) { unit . setActive ( false ) ; org . lnu . is . domain . education . form . type . EducationFormType context = new org . lnu . is . domain . education . form . type . EducationFormType ( ) ; java . lang . String expectedQuery = "SELECT<sp>e<sp>FROM<sp>EducationFormType<sp>e<sp>...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
testNewDelegateProxy ( ) { edu . illinois . library . cantaloupe . resource . RequestContext context = new edu . illinois . library . cantaloupe . resource . RequestContext ( ) ; "<AssertPlaceHolder>" ; } newDelegateProxy ( edu . illinois . library . cantaloupe . resource . RequestContext ) { if ( edu . illinois . libr...
org . junit . Assert . assertNotNull ( instance . newDelegateProxy ( context ) )
testGetDesktopWindow_succeeds ( ) { doTestWithNotepad ( ( instance , app ) -> { mmarquee . automation . controls . AutomationWindow window = instance . getDesktopWindow ( getLocal ( "notepad.title" ) ) ; "<AssertPlaceHolder>" ; } ) ; } getLocal ( java . lang . String ) { return mmarquee . automation . BaseAutomationTes...
org . junit . Assert . assertNotNull ( window )
testWhereOrRule ( ) { java . lang . String s = "select<sp>*<sp>from<sp>dbo.test<sp>where<sp>a<sp>=<sp>4<sp>or<sp>x<sp>=<sp>5<sp>OR<sp>f<sp>=<sp>8<sp>Or<sp>t<sp>=<sp>0;" ; org . sonar . plugins . tsql . checks . custom . Rule sut = org . sonar . plugins . tsql . checks . CustomPluginChecks . getWhereWithOrVsUnionRule ( ...
org . junit . Assert . assertEquals ( 3 , issues . length )
nodeInDatabaseShouldBeRetrievable ( ) { long nodeId = new org . neo4j . server . rest . domain . GraphDbHelper ( org . neo4j . server . rest . web . DatabaseActionsTest . database ) . createNode ( ) ; "<AssertPlaceHolder>" ; } getNode ( long ) { try { return output . ok ( actions . getNode ( nodeId ) ) ; } catch ( org ...
org . junit . Assert . assertNotNull ( org . neo4j . server . rest . web . DatabaseActionsTest . actions . getNode ( nodeId ) )
testFastutil2ObjMap ( ) { it . unimi . dsi . fastutil . chars . Char2ObjectMap < org . apache . hadoop . io . IntWritable > list = new it . unimi . dsi . fastutil . chars . Char2ObjectOpenHashMap ( ) ; list . put ( 'a' , new org . apache . hadoop . io . IntWritable ( 6 ) ) ; list . put ( 'q' , new org . apache . hadoop...
org . junit . Assert . assertEquals ( list , deser )
testNullReturnedOnClosedParserOnNextValue ( ) { "<AssertPlaceHolder>" ; } nextValue ( ) { com . fasterxml . jackson . core . JsonToken t = nextToken ( ) ; if ( t == ( com . fasterxml . jackson . core . JsonToken . FIELD_NAME ) ) { t = nextToken ( ) ; } return t ; }
org . junit . Assert . assertNull ( parser . nextValue ( ) )
getTestMethodNamePrefix_A$TestMethodMeta ( ) { java . lang . String sourceCodeString = "package<sp>hoge.foo;<sp>import<sp>java.util.List;<sp>public<sp>class<sp>Sample<sp>{<sp>public<sp>Sample()<sp>{}\r\n<sp>public<sp>int<sp>doSomething(String<sp>str,<sp>long<sp>longValue)<sp>throws<sp>Throwable<sp>{<sp>System.out.print...
org . junit . Assert . assertEquals ( expected , actual )
hammingDistance ( ) { "<AssertPlaceHolder>" ; } hammingDistance ( ) { org . junit . Assert . assertNotNull ( org . simmetrics . metrics . StringDistances . hammingDistance ( ) ) ; }
org . junit . Assert . assertNotNull ( org . simmetrics . metrics . StringDistances . hammingDistance ( ) )
testSelectAllFromText3UsingMultipleStep ( ) { com . liferay . dynamic . data . mapping . form . values . query . DDMFormValuesQuery ddmFormValuesQuery = createDDMFormValuesQuery ( "//text3//*" ) ; java . util . List < com . liferay . dynamic . data . mapping . storage . DDMFormFieldValue > ddmFormFieldValues = ddmFormV...
org . junit . Assert . assertEquals ( ddmFormFieldValues . toString ( ) , 7 , ddmFormFieldValues . size ( ) )
testLookupEnum ( ) { java . lang . String name = org . eclipse . tracecompass . ctf . core . tests . types . StructDefinitionTest . ENUM_ID ; org . eclipse . tracecompass . ctf . core . event . types . EnumDefinition result = fixture . lookupEnum ( name ) ; "<AssertPlaceHolder>" ; } lookupEnum ( java . lang . String ) ...
org . junit . Assert . assertNotNull ( result )
testDateSupport ( ) { io . cdap . cdap . api . data . schema . Schema schema = io . cdap . cdap . api . data . schema . Schema . recordOf ( "test" , Schema . Field . of ( "id" , io . cdap . cdap . api . data . schema . Schema . of ( Schema . Type . INT ) ) , Schema . Field . of ( "name" , io . cdap . cdap . api . data ...
org . junit . Assert . assertEquals ( expected , actual )
testOnPlayerInteractFarmland ( ) { when ( clickedBlock . getType ( ) ) . thenReturn ( Material . FARMLAND ) ; org . bukkit . event . player . PlayerInteractEvent e = new org . bukkit . event . player . PlayerInteractEvent ( player , org . bukkit . event . block . Action . PHYSICAL , item , clickedBlock , org . bukkit ....
org . junit . Assert . assertTrue ( e . isCancelled ( ) )
TestGetPowerStateRunning ( ) { com . vmware . admiral . compute . kubernetes . entities . pods . ContainerStatus status = new com . vmware . admiral . compute . kubernetes . entities . pods . ContainerStatus ( ) ; status . state = new com . vmware . admiral . compute . kubernetes . entities . pods . ContainerState ( ) ...
org . junit . Assert . assertEquals ( PowerState . RUNNING , state )
testFromJsonObjectNoData ( ) { javax . json . JsonObject jsonObject = javax . json . Json . createObjectBuilder ( ) . build ( ) ; edu . wpi . rail . jrosbridge . messages . std . UInt8 data = edu . wpi . rail . jrosbridge . messages . std . UInt8 . fromJsonObject ( jsonObject ) ; "<AssertPlaceHolder>" ; } getData ( ) {...
org . junit . Assert . assertEquals ( ( ( byte ) ( 0 ) ) , data . getData ( ) )
testFetchByPrimaryKeysWithMultiplePrimaryKeysWhereNoPrimaryKeysExist ( ) { long pk1 = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; long pk2 = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; java . util . Set < java . io . Serializable > primaryKeys = ne...
org . junit . Assert . assertTrue ( blogsEntries . isEmpty ( ) )
testReadFailure ( ) { final org . opendaylight . mdsal . common . api . ReadFailedException cause = new org . opendaylight . mdsal . common . api . ReadFailedException ( "fail" ) ; doReturn ( immediateFailedFluentFuture ( cause ) ) . when ( mockReadTx ) . read ( org . opendaylight . netconf . topology . singleton . imp...
org . junit . Assert . assertEquals ( cause , response . cause ( ) )
getCollaboratorsEntityHasNoDocumentReferenceResultsInEmptyCollection ( ) { when ( this . entity . getDocumentReference ( ) ) . thenReturn ( null ) ; final java . util . Collection < org . phenotips . data . permissions . Collaborator > result = this . component . getCollaborators ( this . entity ) ; "<AssertPlaceHolder...
org . junit . Assert . assertTrue ( result . isEmpty ( ) )
test_forward ( ) { for ( int i = 0 ; i < 2 ; i ++ ) { browser . forward ( ) ; } boolean result = browser . forward ( ) ; "<AssertPlaceHolder>" ; } forward ( ) { checkWidget ( ) ; return webBrowser . forward ( ) ; }
org . junit . Assert . assertFalse ( result )
shouldReturnEmptyQueryOnEmptyListOfSinter ( ) { when ( localParamsMock . get ( "command" ) ) . thenReturn ( "sinter" ) ; when ( localParamsMock . get ( "key" ) ) . thenReturn ( "key1" ) ; when ( localParamsMock . get ( "key1" ) ) . thenReturn ( "key2" ) ; when ( localParamsMock . getParameterNamesIterator ( ) ) . thenR...
org . junit . Assert . assertEquals ( 0 , terms . size ( ) )
equalsTo ( ) { java . lang . Object object = new java . lang . Object ( ) ; doReturn ( object ) . when ( map ) . get ( object ) ; java . util . List < java . lang . Object > actualObjects = index . equalsTo ( object ) ; "<AssertPlaceHolder>" ; } get ( byte [ ] ) { return getClient ( ) . get ( key ) ; }
org . junit . Assert . assertEquals ( object , actualObjects . get ( 0 ) )
testMaakBerichtVoorSelectie ( ) { final nl . bzk . algemeenbrp . dal . domein . brp . entity . Dienst dienst = nl . bzk . brp . domain . algemeen . AutAutUtil . zoekDienst ( nl . bzk . brp . domain . algemeen . TestAutorisaties . metSoortDienst ( SoortDienst . SELECTIE ) , SoortDienst . SELECTIE ) ; dienst . setSoortSe...
org . junit . Assert . assertEquals ( verwerkPersoonBerichten , verwerkPersoonBerichtenReturned )
setVersionSetsTheVersion ( ) { java . lang . String versionStr = "abcdefg" ; byte [ ] data = new byte [ 1 ] ; com . microsoft . azure . sdk . iot . device . MessageType messageType = com . microsoft . azure . sdk . iot . device . MessageType . DEVICE_TWIN ; com . microsoft . azure . sdk . iot . device . transport . Iot...
org . junit . Assert . assertEquals ( versionStr , iotHubTransportMessage . getVersion ( ) )
testModifyTicketAddGroupEmptyGroup ( ) { org . irods . jargon . ticket . packinstr . TicketAdminInp pi = org . irods . jargon . ticket . packinstr . TicketAdminInp . instanceForModifyAddAccess ( ticketId , TicketModifyAddOrRemoveTypeEnum . TICKET_MODIFY_GROUP , "" ) ; "<AssertPlaceHolder>" ; } instanceForModifyAddAcces...
org . junit . Assert . assertNotNull ( pi )
future_A$Function0 ( ) { java . util . concurrent . Future < java . lang . String > f = future ( new com . m3 . scalaflavor4j . F0 < java . lang . String > ( ) { public java . lang . String apply ( ) throws com . m3 . scalaflavor4j . Exception { java . lang . Thread . sleep ( 1000L ) ; return "foo" ; } } ) ; "<AssertPl...
org . junit . Assert . assertThat ( f . get ( ) , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( "foo" ) ) )
testRestoreWithFilterWhenAlreadyCalledAndNotMatching ( ) { final boolean required = true ; org . mockito . Mockito . when ( referencedEntry . restore ( required ) ) . thenReturn ( false ) ; org . mockito . Mockito . when ( referencedEntry . restore ( org . mockito . Mockito . eq ( required ) , org . mockito . Mockito ....
org . junit . Assert . assertThat ( entry . restore ( required , ( p ) -> false ) , org . hamcrest . Matchers . equalTo ( false ) )
testInvalidConf ( ) { com . streamsets . pipeline . stage . origin . eventhubs . EventHubConsumerSource eventHubConsumerSource = new com . streamsets . pipeline . stage . origin . eventhubs . EventHubConsumerSourceBuilder ( ) . namespaceName ( "inValidNamspaceName" ) . eventHubName ( "inValidSampleEventHub" ) . sasKeyN...
org . junit . Assert . assertEquals ( 1 , issues . size ( ) )
test_authentication_successful ( ) { when ( clientData . getUsername ( ) ) . thenReturn ( com . google . common . base . Optional . of ( "test" ) ) ; when ( clientData . getPassword ( ) ) . thenReturn ( com . google . common . base . Optional . of ( "pw" ) ) ; com . dcsquare . hivemq . plugin . stormpathplugin . callba...
org . junit . Assert . assertTrue ( testAuthentication . checkCredentials ( clientData ) )
testBerichtMetOverrulMetOverrulbareFouten1 ( ) { nl . bzk . brp . business . dto . bijhouding . AbstractBijhoudingsBericht bericht = new nl . bzk . brp . business . dto . bijhouding . VerhuizingBericht ( ) ; nl . bzk . brp . business . dto . BerichtContext context = new nl . bzk . brp . business . dto . BerichtContext ...
org . junit . Assert . assertEquals ( true , resultaat . bevatVerwerkingStoppendeFouten ( ) )
testFoldersCountWhenAddingWikiPage ( ) { int initialFoldersCount = com . liferay . document . library . kernel . service . DLFolderLocalServiceUtil . getDLFoldersCount ( ) ; addWikiPage ( ) ; "<AssertPlaceHolder>" ; } getDLFoldersCount ( ) { return com . liferay . document . library . kernel . service . DLFolderLocalSe...
org . junit . Assert . assertEquals ( initialFoldersCount , com . liferay . document . library . kernel . service . DLFolderLocalServiceUtil . getDLFoldersCount ( ) )
testCreateWithAtomicLongReturnsInteger ( ) { final org . jsoar . kernel . symbols . Symbol s = org . jsoar . kernel . symbols . Symbols . create ( syms , new java . util . concurrent . atomic . AtomicLong ( 43 ) ) ; "<AssertPlaceHolder>" ; } asInteger ( ) { return null ; }
org . junit . Assert . assertEquals ( 43 , s . asInteger ( ) . getValue ( ) )
getNextInvocationTime_A$Calendar$Crontab_fixedInvocationAndRenew ( ) { java . util . Calendar arg0 = com . github . seratch . taskun . util . CalendarUtil . getCalendar ( "2010" , "4" , "21" , "22" , "00" , "01" ) ; java . util . Calendar expected = com . github . seratch . taskun . util . CalendarUtil . getCalendar ( ...
org . junit . Assert . assertTrue ( ( ( expected . getTimeInMillis ( ) ) == actual ) )
testHashCodeEquals ( ) { org . spf4j . base . avro . Method m = new org . spf4j . base . avro . Method ( "org.apache.avro.Schema" , "toString" ) ; org . spf4j . base . avro . Method m2 = new org . spf4j . base . avro . Method ( "org.apache.avro.Schema" , "toString" ) ; org . spf4j . stackmonitor . MethodMapTest . LOG ....
org . junit . Assert . assertEquals ( mm . hash ( m ) , mm . hash ( m2 ) , 0 )
testPut_VoidValue_CharSequenceNodeFactory ( ) { com . googlecode . concurrenttrees . radix . ConcurrentRadixTree < com . googlecode . concurrenttrees . radix . node . concrete . voidvalue . VoidValue > tree = new com . googlecode . concurrenttrees . radix . ConcurrentRadixTree < com . googlecode . concurrenttrees . rad...
org . junit . Assert . assertEquals ( expected , actual )
createRegistrationStateQuerySucceed ( tests . unit . com . microsoft . azure . sdk . iot . provisioning . service . QuerySpecification ) { final java . lang . String enrollmentGroupId = "valid-enrollmentGroupId" ; tests . unit . com . microsoft . azure . sdk . iot . provisioning . service . ProvisioningServiceClient pr...
org . junit . Assert . assertNotNull ( query )
testGetValidKontonummerFromInvalidKontonummerWrongChecksum ( ) { no . bekk . bekkopen . banking . Kontonummer knr = no . bekk . bekkopen . banking . KontonummerValidator . getAndForceValidKontonummer ( no . bekk . bekkopen . banking . KontonummerValidatorTest . KONTONUMMER_INVALID_CHECKSUM ) ; "<AssertPlaceHolder>" ; }...
org . junit . Assert . assertTrue ( no . bekk . bekkopen . banking . KontonummerValidator . isValid ( knr . toString ( ) ) )
testFilteredEagerEvaluation ( ) { java . lang . String str = "package<sp>org.simple<sp>\n" + ( ( ( ( ( ( ( ( ( "rule<sp>xxx<sp>@Propagation(EAGER)<sp>\n" + "when<sp>\n" ) + "<sp>$s<sp>:<sp>String()\n" ) + "then<sp>\n" ) + "end<sp>\n" ) + "rule<sp>yyy<sp>@Propagation(EAGER)<sp>\n" ) + "when<sp>\n" ) + "<sp>$s<sp>:<sp>St...
org . junit . Assert . assertEquals ( 1 , list . size ( ) )
testFormat ( ) { java . lang . String formatted = new pl . jgwozdz . brickcommand . brick . helper . HexDump ( "\r\n" ) . format ( pl . jgwozdz . brickcommand . brick . helper . HexDumpTest . data ) ; java . lang . String expected = "2600<sp>0100<sp>819e<sp>084d<sp>6169<sp>6c42<sp>6f78<sp>0017<sp>0054<sp>6869<sp>7320<s...
org . junit . Assert . assertEquals ( expected , formatted )
testDoesNotEqualSecondNull ( ) { com . rmn . pairwise . Molecule molecule1 = new com . rmn . pairwise . Molecule ( new int [ ] { 1 , 0 } ) ; com . rmn . pairwise . Molecule molecule2 = new com . rmn . pairwise . Molecule ( null ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == o ) return ...
org . junit . Assert . assertFalse ( molecule1 . equals ( molecule2 ) )
testGetFWRevisionFail ( ) { org . eclipse . kura . bluetooth . le . BluetoothLeGattService infoSvcMock = mock ( org . eclipse . kura . bluetooth . le . BluetoothLeGattService . class ) ; doThrow ( new org . eclipse . kura . KuraBluetoothResourceNotFoundException ( "test" ) ) . when ( infoSvcMock ) . findCharacteristic ...
org . junit . Assert . assertEquals ( "" , tag . getFirmareRevision ( ) )
c01_int ( ) { java . lang . String o = org . apache . juneau . rest . client . remote . BodyAnnotationTest . c01 . postC01 ( 1 ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( "1" , o )
testEnsureProxy ( ) { final java . util . function . Function < java . lang . Long , org . opendaylight . controller . cluster . databroker . actors . dds . AbstractProxyTransaction > function = org . opendaylight . controller . cluster . databroker . actors . dds . AbstractClientHandleTest . mock ( java . util . funct...
org . junit . Assert . assertEquals ( expected , proxy )
getPaymentInfos_Admin_Authorized ( ) { java . lang . reflect . Method method = beanClass . getMethod ( "getPaymentInfos" ) ; boolean isRoleAllowed = isRoleAllowed ( method , UserRoleType . ORGANIZATION_ADMIN ) ; "<AssertPlaceHolder>" ; } isRoleAllowed ( java . lang . reflect . Method , org . oscm . internal . types . e...
org . junit . Assert . assertTrue ( isRoleAllowed )
callInvokeWithException_ShouldThrowException ( ) { java . lang . String message = "Message" ; org . openengsb . core . api . remote . MethodResult result = new org . openengsb . core . api . remote . MethodResult ( message , org . openengsb . core . api . remote . MethodResult . ReturnType . Exception ) ; when ( router...
org . junit . Assert . assertThat ( e . getMessage ( ) , org . hamcrest . Matchers . equalTo ( message ) )
isExportEnabled_NoServiceSelected ( ) { java . util . List < org . oscm . ui . model . TechnicalService > services = givenServicesNotSelected ( 1 ) ; doReturn ( services ) . when ( bean ) . getSelectableTechnicalServices ( ) ; boolean isExportEnabled = bean . isExportEnabled ( ) ; "<AssertPlaceHolder>" ; } isExportEnab...
org . junit . Assert . assertFalse ( isExportEnabled )
testGetPropertyUsingNullKeyReturnsNull ( ) { org . apache . qpid . jms . message . facade . JmsMessageFacade amqpMessageFacade = createNewMessageFacade ( ) ; "<AssertPlaceHolder>" ; } getProperty ( java . lang . String ) { return org . apache . qpid . jms . provider . amqp . message . AmqpJmsMessagePropertyIntercepter ...
org . junit . Assert . assertNull ( amqpMessageFacade . getProperty ( null ) )
testShouldFire ( ) { org . apache . beam . runners . core . triggers . TriggerStateMachineTester < java . lang . Integer , org . apache . beam . sdk . transforms . windowing . IntervalWindow > tester = org . apache . beam . runners . core . triggers . TriggerStateMachineTester . forTrigger ( org . apache . beam . runne...
org . junit . Assert . assertTrue ( tester . shouldFire ( arbitraryWindow ) )
includeExcludeRule4Test ( ) { java . lang . String code = "class<sp>A{isA<sp>T1;}trait<sp>T1{isA<sp>T2<sp><+show()>;void<sp>test(){/*T1*/}<sp>}trait<sp>T2{}" ; cruise . umple . compiler . UmpleModel model = getModel ( code ) ; boolean result = false ; try { model . run ( ) ; } catch ( java . lang . Exception e ) { resu...
org . junit . Assert . assertTrue ( result )
concurrencyFalse ( ) { org . apache . hadoop . hive . conf . HiveConf badConf = new org . apache . hadoop . hive . conf . HiveConf ( ) ; if ( badConf . getBoolVar ( HiveConf . ConfVars . HIVE_SUPPORT_CONCURRENCY ) ) { return ; } badConf . setVar ( HiveConf . ConfVars . HIVE_TXN_MANAGER , "org.apache.hadoop.hive.ql.lock...
org . junit . Assert . assertTrue ( sawException )
setupIssuerParametersIdemix ( ) { java . lang . String issuerParametersUid = "urn:issuerparameters:test:foobar" ; eu . abc4trust . services . issuer . IssuerServiceFactory issuerServiceFactory = new eu . abc4trust . services . issuer . IssuerServiceFactory ( ) ; eu . abc4trust . xml . IssuerParameters issuerParameters ...
org . junit . Assert . assertNotNull ( issuerParameters )
testCreateThenDelete ( ) { java . lang . String createStr = com . palominolabs . crm . sf . rest . HttpApiClientTest . createTask ( ) ; com . fasterxml . jackson . databind . node . ObjectNode actual = com . palominolabs . crm . sf . rest . TestConnections . MAPPER . readValue ( createStr , com . fasterxml . jackson . ...
org . junit . Assert . assertEquals ( expected , actual )
testBuildTableNameNonRootServicePathDataModelByServicePathNewEncoding ( ) { System . out . println ( ( ( ( getTestTraceHead ( "[NGSIPostgreSQLSink.buildTableName]" ) ) + "--------<sp>When<sp>a<sp>non<sp>root<sp>service-path<sp>is<sp>notified/defaulted<sp>and<sp>data_model<sp>is<sp>" ) + "'dm-by-service-path'<sp>the<sp>...
org . junit . Assert . assertEquals ( expecetedTableName , builtTableName )
testSQLTemplateForDataMapWithInsert ( ) { createArtistDataSet ( ) ; org . apache . cayenne . map . DataMap testDataMap = context . getEntityResolver ( ) . getDataMap ( "testmap" ) ; org . apache . cayenne . query . SQLTemplate q2 = new org . apache . cayenne . query . SQLTemplate ( testDataMap , "SELECT<sp>*<sp>FROM<sp...
org . junit . Assert . assertEquals ( 2 , result . size ( ) )
test_WhiteKingSideCastle_MovesThroughCheckAtF1 ( ) { classUnderTest = new eubos . position . PositionManager ( "8/8/8/8/8/3b4/8/4K2R<sp>w<sp>K<sp>-<sp>-<sp>-" ) . castling ; classUnderTest . addCastlingMoves ( ml ) ; "<AssertPlaceHolder>" ; } addCastlingMoves ( java . util . List ) { eubos . board . pieces . Piece . Co...
org . junit . Assert . assertTrue ( ml . isEmpty ( ) )
testGetFallback ( ) { org . orbisgis . legend . thematic . categorize . CategorizedArea ca = getCategorizedArea ( ) ; org . orbisgis . legend . thematic . AreaParameters ap = new org . orbisgis . legend . thematic . AreaParameters ( org . orbisgis . legend . thematic . categorize . Color . decode ( "#111111" ) , 0.2 , ...
org . junit . Assert . assertTrue ( ca . getFallbackParameters ( ) . equals ( ap ) )
testBytes1 ( ) { com . laytonsmith . core . constructs . CByteArray ba1 = new com . laytonsmith . core . constructs . CByteArray ( Target . UNKNOWN ) ; ba1 . writeUTF8String ( "A<sp>string" , null , null ) ; com . laytonsmith . core . constructs . CByteArray ba2 = new com . laytonsmith . core . constructs . CByteArray ...
org . junit . Assert . assertArrayEquals ( ba1 . asByteArrayCopy ( ) , ba2 . asByteArrayCopy ( ) )
testDeserializeStreamOfNull ( ) { java . io . ByteArrayOutputStream streamReal = new java . io . ByteArrayOutputStream ( ) ; java . io . ObjectOutputStream oos = new java . io . ObjectOutputStream ( streamReal ) ; oos . writeObject ( null ) ; oos . flush ( ) ; oos . close ( ) ; java . io . ByteArrayInputStream inTest =...
org . junit . Assert . assertNull ( test )
testpropertyoutput3 ( ) { project . setNewProperty ( "bar" , "bar" ) ; "<AssertPlaceHolder>" ; } getProperty ( java . lang . String ) { final java . lang . Object value = org . apache . tools . ant . PropertyHelper . getPropertyHelper ( this ) . getProperty ( propertyName ) ; return value == null ? null : java . lang ....
org . junit . Assert . assertEquals ( "bar" , project . getProperty ( "bar" ) )
testShouldUseAMapToRepresentComplexObjects ( ) { org . json . JSONObject toModel = new org . json . JSONObject ( ) ; toModel . put ( "thing" , "hairy" ) ; toModel . put ( "hairy" , "true" ) ; java . util . Map < ? , ? > modelled = ( ( java . util . Map < ? , ? > ) ( new org . openqa . selenium . remote . JsonToBeanConv...
org . junit . Assert . assertEquals ( 2 , modelled . size ( ) )
testAsInt ( ) { org . apache . tajo . datum . Datum d = org . apache . tajo . datum . DatumFactory . createChar ( "5" ) ; "<AssertPlaceHolder>" ; } asInt4 ( ) { throw new org . apache . tajo . exception . TajoRuntimeException ( new org . apache . tajo . exception . InvalidValueForCastException ( type , INT4 ) ) ; }
org . junit . Assert . assertEquals ( 5 , d . asInt4 ( ) )
testNewInstanceWithExistingClassName ( ) { java . lang . Object instance = org . eclipse . rap . rwt . internal . util . ClassUtil . newInstance ( classLoader , org . eclipse . rap . rwt . internal . util . ClassUtil_Test . PublicClass . class . getName ( ) ) ; "<AssertPlaceHolder>" ; } getName ( ) { return name ; }
org . junit . Assert . assertEquals ( instance . getClass ( ) , org . eclipse . rap . rwt . internal . util . ClassUtil_Test . PublicClass . class )
testGetMax ( ) { stat . processLatency ( 1 ) ; stat . processLatency ( 7 ) ; stat . processLatency ( 4 ) ; stat . processLatency ( 5 ) ; stat . processLatency ( 2 ) ; stat . processLatency ( 3 ) ; stat . processLatency ( 6 ) ; "<AssertPlaceHolder>" ; } getMax ( ) { return max ; }
org . junit . Assert . assertEquals ( 7 , stat . getMax ( ) )
testSnapshot ( ) { io . atomix . primitive . service . ServiceContext context = mock ( io . atomix . primitive . service . ServiceContext . class ) ; when ( context . serviceType ( ) ) . thenReturn ( io . atomix . core . set . DistributedSetType . instance ( ) ) ; when ( context . serviceName ( ) ) . thenReturn ( "test...
org . junit . Assert . assertTrue ( service . contains ( "foo" ) )
test_return_dataflavour_inany ( ) { try { org . jacorb . test . CharServerPackage . DataFlavour flavour = new org . jacorb . test . CharServerPackage . DataFlavour ( "Test_Flavour" , new org . jacorb . test . CharServerPackage . NameValuePair [ 0 ] ) ; org . omg . CORBA . Any data = server . return_dataflavour_inany ( ...
org . junit . Assert . assertEquals ( flavour2 . name , "Test_Flavour" )
coreACAssignAssociationToWorkspace ( ) { systems . dmx . core . storage . spi . DMXTransaction tx = dmx . beginTx ( ) ; try { systems . dmx . core . Topic t1 = dmx . createTopic ( mf . newTopicModel ( "dmx.core.plugin" ) ) ; systems . dmx . core . Topic t2 = dmx . createTopic ( mf . newTopicModel ( "dmx.core.plugin" ) ...
org . junit . Assert . assertEquals ( ws . getId ( ) , wsId )
mustNotCachePoisonedSlots ( ) { config . setSize ( 1 ) . setBackgroundExpirationEnabled ( false ) ; final stormpot . Semaphore semaphore = new stormpot . Semaphore ( 1 ) ; final java . util . concurrent . atomic . AtomicBoolean hasExpired = new java . util . concurrent . atomic . AtomicBoolean ( false ) ; config . setE...
org . junit . Assert . assertNull ( ref . get ( ) )
testExpandSymbolicRef ( ) { org . eclipse . swtbot . swt . finder . widgets . SWTBotTree tree = getOrOpenView ( ) . bot ( ) . tree ( ) ; org . eclipse . swtbot . swt . finder . widgets . SWTBotTreeItem item = org . eclipse . egit . ui . test . TestUtil . expandAndWait ( myRepoViewUtil . getSymbolicRefsItem ( tree , rep...
org . junit . Assert . assertTrue ( found )
testNullPropertyName ( ) { java . lang . Object result = cn . jimmyshi . beanquery . DefaultNullValuePropertyValueGetter . getProperty ( new cn . jimmyshi . beanquery . example . Book ( ) , null ) ; "<AssertPlaceHolder>" ; } getProperty ( java . lang . Object , java . lang . String ) { if ( ( null == from ) || ( org . ...
org . junit . Assert . assertNull ( result )
testFilterCountByKeywordsWithBlankKeywordsExcludingBasicType ( ) { int initialFileEntryTypesCount = com . liferay . document . library . kernel . service . persistence . DLFileEntryTypeFinderUtil . filterCountByKeywords ( _group . getCompanyId ( ) , new long [ ] { _group . getGroupId ( ) } , StringPool . BLANK , false ...
org . junit . Assert . assertEquals ( ( initialFileEntryTypesCount + 1 ) , com . liferay . document . library . kernel . service . persistence . DLFileEntryTypeFinderUtil . filterCountByKeywords ( _group . getCompanyId ( ) , new long [ ] { _group . getGroupId ( ) } , StringPool . BLANK , false ) )
removeReturnFalseInsteadOfThrowingAfterUnderlyingPoolResourceException ( ) { org . appenders . log4j2 . elasticsearch . ResizePolicy resizePolicy = mock ( org . appenders . log4j2 . elasticsearch . ResizePolicy . class ) ; when ( resizePolicy . increase ( any ( ) ) ) . thenThrow ( org . appenders . log4j2 . elasticsear...
org . junit . Assert . assertFalse ( resized )
query_with_auth_14 ( ) { org . apache . jena . sparql . engine . http . QueryEngineHTTP qe = ( ( org . apache . jena . sparql . engine . http . QueryEngineHTTP ) ( org . apache . jena . query . QueryExecutionFactory . sparqlService ( org . apache . jena . fuseki . TestAuth . authServiceQuery , "ASK<sp>{<sp>}" ) ) ) ; q...
org . junit . Assert . assertTrue ( qe . execAsk ( ) )
testSortedCommands ( ) { injector . getInstance ( org . apache . ambari . server . orm . OrmTestHelper . class ) . createStageCommands ( ) ; org . apache . ambari . server . orm . dao . HostRoleCommandDAO hostRoleCommandDAO = injector . getInstance ( org . apache . ambari . server . orm . dao . HostRoleCommandDAO . cla...
org . junit . Assert . assertTrue ( ( ( list . get ( 0 ) . getTaskId ( ) ) < ( list . get ( 1 ) . getTaskId ( ) ) ) )
testConsume ( ) { int port = getPort ( ) ; producer . send ( session . createTextMessage ( "test" ) ) ; org . apache . activemq . web . RestTest . LOG . info ( "message<sp>sent" ) ; org . eclipse . jetty . client . HttpClient httpClient = new org . eclipse . jetty . client . HttpClient ( ) ; httpClient . start ( ) ; fi...
org . junit . Assert . assertEquals ( "test" , buf . toString ( ) )
testBadParentJoin ( ) { b . table ( com . foundationdb . ais . model . AISMergeTest . SCHEMA , com . foundationdb . ais . model . AISMergeTest . TABLE ) ; b . column ( com . foundationdb . ais . model . AISMergeTest . SCHEMA , com . foundationdb . ais . model . AISMergeTest . TABLE , "c1" , 0 , "MCOMPAT" , "INT" , fals...
org . junit . Assert . assertTrue ( t . isFrozen ( ) )
checkIndex ( ) { final org . exist . storage . BrokerPool pool = org . exist . indexing . spatial . GMLIndexTest . server . getBrokerPool ( ) ; try ( final org . exist . storage . DBBroker broker = pool . get ( java . util . Optional . of ( pool . getSecurityManager ( ) . getSystemSubject ( ) ) ) ) { org . exist . inde...
org . junit . Assert . assertTrue ( index . checkIndex ( broker ) )
testIsValidFileNotFile ( ) { java . io . File file = new java . io . File ( "file" ) { @ net . holmes . core . common . Override public boolean isFile ( ) { return false ; } } ; "<AssertPlaceHolder>" ; } isValidFile ( java . io . File ) { return ( ( file . isFile ( ) ) && ( file . canRead ( ) ) ) && ( ! ( file . isHidd...
org . junit . Assert . assertFalse ( isValidFile ( file ) )
testMath1129 ( ) { final double [ ] data = new double [ ] { - 0.012086732064244697 , - 0.24975668704012527 , 0.5706168483164684 , - 0.322111769955327 , 0.24166759508327315 , Double . NaN , 0.16698443218942854 , - 0.10427763937565114 , - 0.15595963093172435 , - 0.028075857595882995 , - 0.24137994506058857 , 0.4754317047...
org . junit . Assert . assertTrue ( ( iqr >= 0 ) )
testGetConfigurationsWhenInputListContainsNullElement ( ) { java . util . List < org . finra . herd . model . api . xml . EmrClusterDefinitionConfiguration > emrClusterDefinitionConfigurations = new java . util . ArrayList ( ) ; emrClusterDefinitionConfigurations . add ( null ) ; java . util . List < com . amazonaws . ...
org . junit . Assert . assertEquals ( new java . util . ArrayList ( ) , result )
retry_headersRead_cancel ( ) { io . grpc . internal . ClientStream mockStream1 = mock ( io . grpc . internal . ClientStream . class ) ; doReturn ( mockStream1 ) . when ( retriableStreamRecorder ) . newSubstream ( 0 ) ; org . mockito . InOrder inOrder = inOrder ( retriableStreamRecorder ) ; retriableStream . start ( mas...
org . junit . Assert . assertEquals ( 1 , fakeClock . numPendingTasks ( ) )
test1 ( ) { final com . jogamp . opengl . util . awt . AWTGLReadBufferUtil awtGLReadBufferUtil = new com . jogamp . opengl . util . awt . AWTGLReadBufferUtil ( com . jogamp . opengl . test . junit . jogl . util . texture . TestTexture02AWT . caps . getGLProfile ( ) , false ) ; final java . awt . Frame frame0 = new java...
org . junit . Assert . assertNotNull ( frame1 )
testSingleNode ( ) { java . lang . String grammar = "a<sp>:<sp>ID<sp>-><sp>template(x={$ID.text})<sp><<|<x>|>><sp>;\n" 4 + ( ( ( ( "options<sp>{output=AST;}\n" + "a<sp>:<sp>ID<sp>;\n" ) + "ID<sp>:<sp>\'a\'..\'z\'+<sp>;\n" ) + "a<sp>:<sp>ID<sp>-><sp>template(x={$ID.text})<sp><<|<x>|>><sp>;\n" 7 ) + "WS<sp>:<sp>(\'<sp>\'...
org . junit . Assert . assertEquals ( "a<sp>:<sp>ID<sp>-><sp>template(x={$ID.text})<sp><<|<x>|>><sp>;\n" 3 , found )