input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testDouble ( ) { "<AssertPlaceHolder>" ; } evaluate ( hivemall . ftvec . DeferredObject [ ] ) { assert ( arguments . length ) == 1 ; @ hivemall . ftvec . SuppressWarnings ( "unchecked" ) final java . util . List < java . lang . Double > input = ( ( java . util . List < java . lang . Double > ) ( argumentOI . getList ( ...
org . junit . Assert . assertEquals ( true , udf . evaluate ( 1.0 ) )
addConflictExecutionException ( ) { when ( mockSource . getConnection ( ) . prepareStatement ( anyString ( ) ) ) . thenThrow ( new java . sql . SQLException ( "propagate<sp>this<sp>message" ) ) ; try { mockSourceConflicts . addConflict ( null , org . locationtech . geogig . storage . postgresql . v9 . PGConflictsDataba...
org . junit . Assert . assertTrue ( e . getMessage ( ) . contains ( "propagate<sp>this<sp>message" ) )
testGetOffset ( ) { org . kefirsf . bb . proc . Source source = new org . kefirsf . bb . proc . Source ( org . kefirsf . bb . proc . SourceTest . EXAMPLE ) ; source . setConstantSet ( new java . util . HashSet < org . kefirsf . bb . proc . PatternConstant > ( ) ) ; for ( int i = 0 ; i < ( source . length ( ) ) ; ) { "<...
org . junit . Assert . assertEquals ( source . getOffset ( ) , i )
testGuestEnglishSessionPathWithEnglishCookieAlgorithm3 ( ) { java . lang . String prependI18nLanguageId = getPrependI18nLanguageId ( 3 , null , LocaleUtil . US , LocaleUtil . US ) ; "<AssertPlaceHolder>" ; } getPrependI18nLanguageId ( int , java . util . Locale , java . util . Locale , java . util . Locale ) { javax . ...
org . junit . Assert . assertNull ( prependI18nLanguageId )
simpleParameters ( ) { com . vaadin . flow . router . QueryParameters simpleParams = com . vaadin . flow . router . QueryParameters . simple ( getSimpleInputParameters ( ) ) ; java . util . Map < java . lang . String , java . util . List < java . lang . String > > expectedFullParams = new java . util . HashMap ( ) ; ex...
org . junit . Assert . assertEquals ( expectedFullParams , simpleParams . getParameters ( ) )
deveObterAssinaturaComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe400 . classes . evento . manifestacaodestinatario . NFEventoManifestacaoDestinatario eventoManifestacaoDestinatario = new com . fincatto . documentofiscal . nfe400 . classes . evento . manifestacaodestinatario . NFEventoManifestacaoDesti...
org . junit . Assert . assertEquals ( assinatura , eventoManifestacaoDestinatario . getAssinatura ( ) )
testClone ( ) { gnu . trove . TDoubleArrayList t2 = tDoubleArrayList . clone ( ) ; "<AssertPlaceHolder>" ; } clone ( ) { gnu . trove . TDoubleArrayList m = ( ( gnu . trove . TDoubleArrayList ) ( super . clone ( ) ) ) ; m . delegate = new gnu . trove . list . array . TDoubleArrayList ( this . toArray ( ) ) ; return m ; ...
org . junit . Assert . assertEquals ( t2 , tDoubleArrayList )
sanityCheck ( ) { be . bagofwords . db . Random random = new be . bagofwords . db . Random ( 1204 ) ; be . bagofwords . db . impl . BaseDataInterface < be . bagofwords . db . helper . TestObject > dataInterface = createDataInterface ( "sanityCheck" , be . bagofwords . db . helper . TestObject . class ) . caching ( type...
org . junit . Assert . assertEquals ( randomObj , readObj )
serialize_to_string_correct_input_to_mapper ( ) { org . mockito . ArgumentCaptor < com . amazon . ask . model . ResponseEnvelope > captor = org . mockito . ArgumentCaptor . forClass ( com . amazon . ask . model . ResponseEnvelope . class ) ; when ( mockMapper . writeValueAsString ( responseEnvelope ) ) . thenReturn ( "...
org . junit . Assert . assertEquals ( captor . getValue ( ) , responseEnvelope )
equals_differentType ( ) { final net . sf . qualitycheck . immutableobject . domain . Annotation immutable = net . sf . qualitycheck . immutableobject . domain . Annotation . of ( javax . annotation . concurrent . Immutable . class ) ; final net . sf . qualitycheck . immutableobject . domain . Annotation nonnull = net ...
org . junit . Assert . assertTrue ( ( ! ( immutable . equals ( nonnull ) ) ) )
testDownloadSameUrl ( ) { writeStringToFile ( target , slash . navigation . download . DownloadManagerIT . LOREM_IPSUM_DOLOR_SIT_AMET ) ; slash . navigation . download . Download download1 = manager . queueForDownload ( "447<sp>Bytes" , ( ( slash . navigation . download . DownloadManagerIT . DOWNLOAD ) + "447bytes.txt"...
org . junit . Assert . assertEquals ( download2 , download1 )
testIsUndefined02 ( ) { org . dresdenocl . modelinstancetype . types . IModelInstanceEnumerationLiteral modelInstanceEnumerationLiteral01 ; modelInstanceEnumerationLiteral01 = org . dresdenocl . modelinstancetype . types . base . BasisJavaModelInstanceFactory . createModelInstanceEnumerationLiteral ( null ) ; "<AssertP...
org . junit . Assert . assertTrue ( modelInstanceEnumerationLiteral01 . isUndefined ( ) )
testWaitForCodeIsBlocked ( ) { final com . google . api . client . extensions . jetty . auth . oauth2 . LocalServerReceiver receiver = new com . google . api . client . extensions . jetty . auth . oauth2 . LocalServerReceiver ( ) ; try { receiver . getRedirectUri ( ) ; runWaitForCodeThread ( receiver ) ; java . lang . ...
org . junit . Assert . assertFalse ( forkTermianted )
getEmployeeByUserId ( ) { org . egov . pims . model . PersonalInformation emp = personalInformationService . getEmployeeByUserId ( 1L ) ; "<AssertPlaceHolder>" ; } getEmployeeByUserId ( java . lang . Long ) { return personalInformationService . getEmployeeByUserId ( userId ) ; }
org . junit . Assert . assertNotNull ( emp )
sortPathsParentChild ( ) { java . util . List < java . lang . String > sorted = org . apache . jackrabbit . oak . index . indexer . document . flatfile . TestUtils . sortPaths ( asList ( "/a" , "/a<sp>b" , "/a/bw" ) ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( asList ( "/a" , "/a/bw" , "/a<sp>b" ) , sorted )
testOAuthSpec_noservice ( ) { java . lang . String xml = "<OAuth/>" ; org . apache . shindig . gadgets . spec . OAuthSpec oauth = new org . apache . shindig . gadgets . spec . OAuthSpec ( org . apache . shindig . common . xml . XmlUtil . parse ( xml ) , org . apache . shindig . gadgets . spec . OAuthSpecTest . SPEC_URL...
org . junit . Assert . assertEquals ( 0 , oauth . getServices ( ) . size ( ) )
testGetSetDestination ( ) { control . replay ( ) ; org . apache . cxf . ws . rm . DestinationSequence seq = new org . apache . cxf . ws . rm . DestinationSequence ( id , ref , destination , ProtocolVariation . RM10WSA200408 ) ; seq . setDestination ( destination ) ; "<AssertPlaceHolder>" ; } getDestination ( ) { return...
org . junit . Assert . assertSame ( destination , seq . getDestination ( ) )
computePathFunction ( ) { java . lang . String content = "{<sp>'a'<sp>:<sp>'X',<sp>'b'<sp>:<sp>'Z'<sp>}" ; java . lang . String query = "$.length()" ; java . lang . Object result = org . batfish . common . util . JsonPathUtils . computePathFunction ( query , content ) ; "<AssertPlaceHolder>" ; } computePathFunction ( j...
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . equalTo ( 2 ) )
testUpdateFileVersion ( ) { java . lang . String fileName = com . liferay . portal . kernel . test . util . RandomTestUtil . randomString ( ) ; store . addFile ( companyId , repositoryId , fileName , com . liferay . portlet . documentlibrary . store . test . BaseStoreTestCase . _DATA_VERSION_1 ) ; store . updateFileVer...
org . junit . Assert . assertArrayEquals ( com . liferay . portlet . documentlibrary . store . test . BaseStoreTestCase . _DATA_VERSION_1 , store . getFileAsBytes ( companyId , repositoryId , fileName , "1.1" ) )
noGapsIfSingleInterval ( ) { net . time4j . range . DateInterval interval = net . time4j . range . DateInterval . between ( net . time4j . PlainDate . of ( 2014 , 4 , 10 ) , net . time4j . PlainDate . of ( 2014 , 6 , 1 ) ) ; net . time4j . range . IntervalCollection < net . time4j . PlainDate > windows = net . time4j ....
org . junit . Assert . assertThat ( windows . withGaps ( ) . isEmpty ( ) , org . hamcrest . CoreMatchers . is ( true ) )
testNullComponentsDoNotInject ( ) { com . picocontainer . MutablePicoContainer pico = createPicoContainer ( null ) . addComponent ( com . picocontainer . tck . AbstractPicoContainerTest . ComponentA . class ) . addComponent ( com . picocontainer . tck . AbstractPicoContainerTest . ComponentB . class ) ; try { pico . ad...
org . junit . Assert . assertNotNull ( e . getMessage ( ) )
shouldReturnCorrectNumberOfLinesWhenAnalysedInOneUnit ( ) { final int lines = 100 ; final org . pitest . classinfo . ClassInfo clazz = makeClass ( lines ) ; this . testee = buildSummaryData ( clazz ) ; "<AssertPlaceHolder>" ; } getTotals ( ) { final org . pitest . mutationtest . report . html . MutationTotals mt = new ...
org . junit . Assert . assertEquals ( lines , this . testee . getTotals ( ) . getNumberOfLines ( ) )
testExternalNestedArrayOutOfBoundAccess ( ) { java . util . List < java . lang . String > stmt = new java . util . ArrayList ( ) ; stmt . add ( "CREATE<sp>EXTERNAL<sp>TABLE<sp>FOO<sp>(ID<sp>INT,<sp>MAPFIELD<sp>ANY,<sp>NESTEDMAPFIELD<sp>ANY,<sp>ARRAYFIELD<sp>ANY)<sp>LOCATION<sp>'mocknested:///foo'" ) ; stmt . add ( "CRE...
org . junit . Assert . assertEquals ( 0 , values . size ( ) )
shouldConstruct ( ) { android . webkit . JsPromptResult result = org . robolectric . shadows . ShadowJsPromptResult . newInstance ( ) ; "<AssertPlaceHolder>" ; } newInstance ( ) { return newInstanceOf ( android . webkit . JsPromptResult . class ) ; }
org . junit . Assert . assertNotNull ( result )
encodedFilter ( ) { org . slim3 . datastore . AbstQueryTest . MyQuery query = new org . slim3 . datastore . AbstQueryTest . MyQuery ( ds , "Hoge" ) ; com . google . appengine . api . datastore . Query . Filter filter = new com . google . appengine . api . datastore . Query . FilterPredicate ( "myString" , com . google ...
org . junit . Assert . assertThat ( query . filters . get ( 0 ) , org . hamcrest . CoreMatchers . is ( filter ) )
testMin2 ( ) { double result = org . diirt . graphene . MathIgnoreNaN . min ( 1 , Double . NaN ) ; "<AssertPlaceHolder>" ; } min ( double , double ) { if ( java . lang . Double . isNaN ( a ) ) { return b ; } if ( java . lang . Double . isNaN ( b ) ) { return a ; } return java . lang . Math . min ( a , b ) ; }
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . equalTo ( 1.0 ) )
testUpdate ( ) { final java . lang . String uuid = "uuid" ; final java . lang . String nameValue = "nameValue" ; final org . kie . workbench . common . dmn . client . editors . types . common . DataType dataType = mock ( org . kie . workbench . common . dmn . client . editors . types . common . DataType . class ) ; fin...
org . junit . Assert . assertEquals ( expectedDependentDataTypes , actualDependentDataTypes )
testGetFieldLength ( ) { classUnderTest . setFieldLength ( "aTestString" ) ; "<AssertPlaceHolder>" ; } getFieldLength ( ) { return this . fieldLength ; }
org . junit . Assert . assertEquals ( "aTestString" , classUnderTest . getFieldLength ( ) )
testGetCardVersion ( ) { java . lang . String expResult = "DK" ; java . lang . String result = stripe . getCardVersion ( ) ; "<AssertPlaceHolder>" ; } getCardVersion ( ) { return cardVersion ; }
org . junit . Assert . assertEquals ( expResult , result )
getHoldsThatNodeRefIsHeldBy ( ) { doReturn ( holds ) . when ( mockedHoldService ) . heldBy ( record , true ) ; java . util . Map < java . lang . String , java . lang . String > parameters = buildParameters ( "store_type" , filePlan . getStoreRef ( ) . getProtocol ( ) , "store_id" , filePlan . getStoreRef ( ) . getIdent...
org . junit . Assert . assertNotNull ( json )
commitEmptyDirectory_theEmptyDirectoryShouldNotExistInTheResultCommit ( ) { writeSomethingToGfs ( ) ; java . nio . file . Path dir = gfs . getPath ( "/empty_dir" ) ; java . nio . file . Files . createDirectory ( dir ) ; org . eclipse . jgit . revwalk . RevCommit commit = com . beijunyi . parallelgit . filesystem . Gfs ...
org . junit . Assert . assertFalse ( com . beijunyi . parallelgit . utils . GitFileUtils . exists ( "/empty_dir" , commit , repo ) )
testBuildWithLoadBalanceAlgorithm ( ) { com . bazaarvoice . ostrich . LoadBalanceAlgorithm loadBalanceAlgorithm = mock ( com . bazaarvoice . ostrich . LoadBalanceAlgorithm . class ) ; com . bazaarvoice . ostrich . pool . ServicePool < com . bazaarvoice . ostrich . pool . ServicePoolBuilderTest . Service > service = ( (...
org . junit . Assert . assertEquals ( loadBalanceAlgorithm , service . getLoadBalanceAlgorithm ( ) )
testBindColumnToObject ( ) { java . lang . String objectId = "syn123" ; java . util . List < org . sagebionetworks . repo . model . table . ColumnModel > results = columnModelManager . bindColumnToObject ( expectedNewSchemaIds , objectId ) ; "<AssertPlaceHolder>" ; verify ( mockColumnModelDAO ) . bindColumnToObject ( n...
org . junit . Assert . assertEquals ( newSchema , results )
testCollect_1 ( ) { ksession . setGlobal ( "results" , new java . util . ArrayList < com . sample . domain . complex . Cheese > ( ) ) ; java . util . List < com . sample . domain . complex . Cheese > list = new java . util . ArrayList ( ) ; list . add ( new com . sample . domain . complex . Cheese ( "Cheddar" ) ) ; lis...
org . junit . Assert . assertEquals ( 2 , results . size ( ) )
test_GetItems_Gets_Correct_Size_Of_List_When_findAll_Returns_No_Entries ( ) { when ( elem . findAll ( any ( ) , any ( ) , any ( ) ) ) . thenReturn ( 0 ) ; element . setElement ( elem ) ; mmarquee . automation . controls . AutomationComboBox combo = new mmarquee . automation . controls . AutomationComboBox ( new mmarque...
org . junit . Assert . assertTrue ( ( ( elements . size ( ) ) == 0 ) )
testStack ( ) { com . performizeit . mjprof . parser . ThreadInfo js = new com . performizeit . mjprof . parser . ThreadInfo ( ( ( stck ) + ( stck2 ) ) ) ; "<AssertPlaceHolder>" ; } toString ( ) { java . lang . StringBuilder sb = new java . lang . StringBuilder ( ) ; sb . append ( stepName ) . append ( "/" ) ; for ( ja...
org . junit . Assert . assertEquals ( ( ( stck ) + ( stck2 ) ) , js . toString ( ) )
testBuiltUpToString ( ) { org . apache . beam . runners . core . triggers . TriggerStateMachine trigger = org . apache . beam . runners . core . triggers . AfterWatermarkStateMachine . pastEndOfWindow ( ) . withLateFirings ( org . apache . beam . runners . core . triggers . AfterProcessingTimeStateMachine . pastFirstEl...
org . junit . Assert . assertEquals ( expected , trigger . toString ( ) )
testEmptyObject ( ) { try { parseMetadata ( "[{}]" ) ; org . junit . Assert . fail ( ) ; } catch ( com . questdb . cutlass . json . JsonException e ) { "<AssertPlaceHolder>" ; } } getPosition ( ) { return 0 ; }
org . junit . Assert . assertEquals ( 3 , e . getPosition ( ) )
testBooleanISProp ( ) { java . lang . String template = "<t.manager>" ; org . stringtemplate . v4 . ST st = new org . stringtemplate . v4 . ST ( template ) ; st . add ( "t" , new org . stringtemplate . v4 . test . User ( 32 , "Ter" ) ) ; java . lang . String expected = "true" ; java . lang . String result = st . render...
org . junit . Assert . assertEquals ( expected , result )
testJobRepository ( ) { int aJobStatus = 1 ; int aCloud = 0 ; int aInstanceId = 0 ; java . lang . String aJobType = "create" ; org . openinfinity . cloud . domain . Job job = new org . openinfinity . cloud . domain . Job ( aJobType , aInstanceId , aCloud , aJobStatus ) ; int jobId = jobRepository . addJob ( job ) ; org...
org . junit . Assert . assertEquals ( jobs . size ( ) , 10 )
testDDLTableBlacklist ( ) { server . execute ( "drop<sp>database<sp>if<sp>exists<sp>nodatabase" ) ; com . zendesk . maxwell . filtering . Filter filter = new com . zendesk . maxwell . filtering . Filter ( ) ; filter . addRule ( "blacklist:<sp>*.noseeum" ) ; java . lang . String [ ] allSQL = ( ( java . lang . String [ ]...
org . junit . Assert . assertThat ( rows . size ( ) , org . hamcrest . CoreMatchers . is ( 1 ) )
deveObterIcms20ComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe400 . classes . nota . NFNotaInfoItemImpostoICMS icms = new com . fincatto . documentofiscal . nfe400 . classes . nota . NFNotaInfoItemImpostoICMS ( ) ; final com . fincatto . documentofiscal . nfe400 . classes . nota . NFNotaInfoItemImposto...
org . junit . Assert . assertEquals ( icms20 , icms . getIcms20 ( ) )
shouldDeterminNodeIdFromResourceId ( ) { java . lang . String resourceIdString = "node[Test:1525957453778].interfaceSnmp[opennms-jvm]" ; org . opennms . netmgt . model . ResourceId resourceId = org . opennms . netmgt . model . ResourceId . fromString ( resourceIdString ) ; org . opennms . netmgt . dao . api . ResourceD...
org . junit . Assert . assertEquals ( parentResource , dashlet . determineResourceByResourceId ( resourceId ) )
uniBillTextFormatTest ( ) { java . lang . String inputText = "<sp>\n" + ( ( ( ( ( ( ( ( ( ( "<sp>STATE<sp>OF<sp>NEW<sp>YORK\n" + "<sp>________________________________________________________________________\n" ) + "<sp>\n" ) + "<sp>S.<sp>2005--C<sp>A.<sp>3005--C\n" ) + "<sp>\n" ) + "<sp>SENATE<sp>-<sp>ASSEMBLY\n" ) + "...
org . junit . Assert . assertEquals ( expectedResult , gov . nysenate . openleg . util . BillTextUtils . formatHtmlExtractedBillText ( inputText ) )
testSavePatientList ( ) { org . raxa . module . raxacore . PatientList pList = new org . raxa . module . raxacore . PatientList ( ) ; pList . setName ( "TestList3" ) ; pList . setDescription ( "Third<sp>Test<sp>List" ) ; pList . setCreator ( org . openmrs . api . context . Context . getUserContext ( ) . getAuthenticate...
org . junit . Assert . assertEquals ( name , "TestList3" )
testMaakentityConvertorAkteNummer ( ) { nl . bzk . migratiebrp . test . brpnaarlo3 . adapter . ConverterContext ctx = createContext ( nl . bzk . migratiebrp . test . brpnaarlo3 . adapter . entity . IstStapelVoorkomenConverterTest . MINIMAAL ) ; converter . convertInhoudelijk ( ctx , IstStapelVoorkomenConverter . HEADER...
org . junit . Assert . assertEquals ( aktenummer , stapelVoorkomen . getAktenummer ( ) )
serializeReplyWithDiscoveryException ( ) { io . joynr . exceptions . DiscoveryException error = new io . joynr . exceptions . DiscoveryException ( "detail<sp>message:<sp>DiscoveryException" ) ; joynr . Reply reply = new joynr . Reply ( java . util . UUID . randomUUID ( ) . toString ( ) , error ) ; java . lang . String ...
org . junit . Assert . assertEquals ( reply , receivedReply )
testReportWithNullHistoryTTL ( ) { prepareDecisionInstances ( org . camunda . bpm . engine . test . history . CleanableHistoricDecisionInstanceReportTest . DECISION_DEFINITION_KEY , ( - 6 ) , null , 5 ) ; prepareDecisionInstances ( org . camunda . bpm . engine . test . history . CleanableHistoricDecisionInstanceReportT...
org . junit . Assert . assertEquals ( 1 , reportResults . size ( ) )
testSubscriptionLocalizedContentWhenUpdatingBaseModel ( ) { java . util . Map < java . util . Locale , java . lang . String > previousLocalizedContents = new java . util . HashMap ( ) ; previousLocalizedContents . putAll ( localizedContents ) ; localizedContents . put ( LocaleUtil . SPAIN , com . liferay . portlet . su...
org . junit . Assert . assertEquals ( messages . toString ( ) , 1 , messages . size ( ) )
test ( ) { java . lang . String inputStr = "DES" ; java . lang . String key = com . mtools . core . plugin . security . DESCoder . initKey ( ) ; System . err . println ( ( "原文:\t" + inputStr ) ) ; System . err . println ( ( "密钥:\t" + key ) ) ; byte [ ] inputData = inputStr . getBytes ( ) ; inputData = com . mtools . co...
org . junit . Assert . assertEquals ( inputStr , outputStr )
testGetNewPositionOfTheBlackSheep ( ) { for ( it . polimi . deib . provaFinale2014 . andrea . celli_stefano1 . cereda . gameModel . objectsOfGame . Terrain t : it . polimi . deib . provaFinale2014 . andrea . celli_stefano1 . cereda . gameModel . objectsOfGame . Terrain . values ( ) ) { it . polimi . deib . provaFinale2...
org . junit . Assert . assertEquals ( t , mbs . getNewPositionOfTheBlackSheep ( ) )
testGetIndividual ( ) { long studyId = user3 . getProjects ( ) . get ( 0 ) . getStudies ( ) . get ( 0 ) . getUid ( ) ; org . opencb . opencga . core . models . Individual individual = new org . opencb . opencga . core . models . Individual ( "an_individual" , "An<sp>Individual" , IndividualProperty . Sex . MALE , "" , ...
org . junit . Assert . assertEquals ( individual . toString ( ) , individual2 . toString ( ) )
testIsNotNull ( ) { com . j256 . ormlite . stmt . Where < com . j256 . ormlite . stmt . Foo , java . lang . String > where = new com . j256 . ormlite . stmt . Where < com . j256 . ormlite . stmt . Foo , java . lang . String > ( createTableInfo ( ) , null , databaseType ) ; where . isNotNull ( Foo . VAL_COLUMN_NAME ) ; ...
org . junit . Assert . assertEquals ( sb . toString ( ) , whereSb . toString ( ) )
testShoudNotThrowExceptionIfAlreadyUnformated ( ) { java . lang . String fotmatedValue = "12345678" ; java . lang . String unformatedValue = formatter . unformat ( fotmatedValue ) ; "<AssertPlaceHolder>" ; } unformat ( java . lang . String ) { return base . unformat ( value ) ; }
org . junit . Assert . assertEquals ( unformatedValue , "12345678" )
testDateRangeQuery2 ( ) { lemongrenade . core . database . mongo . Calendar calStart = lemongrenade . core . database . mongo . GregorianCalendar . getInstance ( ) ; calStart . add ( Calendar . DAY_OF_YEAR , ( - 29 ) ) ; lemongrenade . core . database . mongo . Calendar calEnd = lemongrenade . core . database . mongo ....
org . junit . Assert . assertFalse ( lookInList ( jobs1 , j . getJobId ( ) ) )
getsContentType ( ) { javax . ws . rs . core . MultivaluedMap < java . lang . String , java . lang . Object > headers = new javax . ws . rs . core . MultivaluedHashMap ( ) ; javax . ws . rs . core . MediaType mediaType = new javax . ws . rs . core . MediaType ( "text" , "plain" , com . google . common . collect . Immut...
org . junit . Assert . assertSame ( mediaType , response . getMediaType ( ) )
testSetAccountPartition ( ) { org . openstack . atlas . util . ip . IPv6 control = new org . openstack . atlas . util . ip . IPv6 ( "ffff::" ) ; org . openstack . atlas . util . ip . IPv6 expected = new org . openstack . atlas . util . ip . IPv6 ( "ffff::f0c6:5ccc:0000:0000" ) ; control . setAccountPartition ( 354934 )...
org . junit . Assert . assertEquals ( expected , control )
split_string_to_list_using_fix_length ( ) { java . util . List < java . lang . String > digits = com . google . common . base . Splitter . fixedLength ( 1 ) . splitToList ( "1234567890" ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( 10 , digits . size ( ) )
shouldReturnFalseWhenExceptionWhileMatching ( ) { org . hamcrest . Matcher delegatedMatcher = org . mockito . Mockito . mock ( org . hamcrest . Matcher . class ) ; when ( delegatedMatcher . matches ( any ( ) ) ) . thenThrow ( cn . jimmyshi . beanquery . NullPointerException . class ) ; cn . jimmyshi . beanquery . BeanP...
org . junit . Assert . assertFalse ( result )
toWorkFormTest ( ) { org . orcid . jaxb . model . v3 . rc2 . record . Work work = getWork ( ) ; org . orcid . pojo . ajaxForm . WorkForm form = org . orcid . pojo . ajaxForm . WorkForm . valueOf ( work ) ; "<AssertPlaceHolder>" ; } getWorkForm ( ) { org . orcid . pojo . ajaxForm . WorkForm form = new org . orcid . pojo...
org . junit . Assert . assertEquals ( getWorkForm ( ) , form )
testGetBackupRangeBatch ( ) { java . lang . String expectedSql = "SELECT<sp>*<sp>FROM<sp>SOME_TABLE<sp>WHERE<sp>`ID`<sp>BETWEEN<sp>:BMINID<sp>AND<sp>:BMAXID" ; java . lang . String sql = org . sagebionetworks . repo . model . dbo . DMLUtils . getBackupRangeBatch ( mapping ) ; "<AssertPlaceHolder>" ; } getBackupRangeBat...
org . junit . Assert . assertEquals ( expectedSql , sql )
testEmptyAssemblyConfig ( ) { io . fabric8 . maven . docker . assembly . DockerAssemblyConfigurationSource source = new io . fabric8 . maven . docker . assembly . DockerAssemblyConfigurationSource ( new io . fabric8 . maven . docker . util . MojoParameters ( null , null , null , null , null , null , "/src/docker" , "/o...
org . junit . Assert . assertEquals ( 0 , source . getDescriptors ( ) . length )
testConvertNull ( ) { java . lang . Byte result = underTest . convert ( null ) ; "<AssertPlaceHolder>" ; } convert ( java . lang . String ) { if ( "S" . equalsIgnoreCase ( value ) ) { return Size . TINY ; } else if ( "M" . equalsIgnoreCase ( value ) ) { return Size . NORMAL ; } else if ( "L" . equalsIgnoreCase ( value ...
org . junit . Assert . assertNull ( result )
testGetElapsedTimeInMilliSeconds ( ) { org . openscience . smsd . tools . TimeManager instance = new org . openscience . smsd . tools . TimeManager ( ) ; double expResult = 360 ; myMethod ( 360 ) ; double result = instance . getElapsedTimeInMilliSeconds ( ) ; "<AssertPlaceHolder>" ; } getElapsedTimeInMilliSeconds ( ) {...
org . junit . Assert . assertEquals ( expResult , result , 360 )
testMultipleTimeSeriesMovingAverage ( ) { table . clear ( ) ; long ts = java . lang . System . currentTimeMillis ( ) ; timely . store . iterators . List < timely . model . Tag > tags1 = new timely . store . iterators . ArrayList ( ) ; tags1 . add ( new timely . model . Tag ( "host" , "r01n01" ) ) ; timely . store . ite...
org . junit . Assert . assertFalse ( iter . hasTop ( ) )
testCreateDir ( ) { System . out . println ( "Testing<sp>HDFSBackendImplREST.createDir" ) ; try { backend . setHttpClient ( mockHttpClientExistsCreateDir ) ; backend . createDir ( dirPath ) ; } catch ( java . lang . Exception e ) { org . junit . Assert . fail ( e . getMessage ( ) ) ; } finally { "<AssertPlaceHolder>" ;...
org . junit . Assert . assertTrue ( true )
testProcessIndication ( ) { javax . cim . CIMInstance indication = createAlertIndication ( ) ; com . emc . storageos . cimadapter . connections . ecom . EcomConnection connection = createEcomConnection ( ) ; com . emc . storageos . cimadapter . processors . EcomIndicationProcessor processor = new com . emc . storageos ...
org . junit . Assert . assertTrue ( indicationData . isAlertIndication ( ) )
testRoundTripDate ( ) { com . hp . hpl . jena . rdf . model . Literal l = com . hp . hpl . jena . rdf . model . ResourceFactory . createTypedLiteral ( "1999-05-31" , XSDDatatype . XSDdate ) ; java . lang . String date = com . epimorphics . jsonrdf . RDFUtil . formatDateTime ( l , false ) ; com . hp . hpl . jena . rdf ....
org . junit . Assert . assertEquals ( l , lret )
testHashCode ( ) { java . util . Set < java . lang . Integer > uniques = result . stream ( ) . map ( Token :: hashCode ) . collect ( java . util . stream . Collectors . toSet ( ) ) ; "<AssertPlaceHolder>" ; } stream ( ) { return java . util . stream . StreamSupport . stream ( java . util . Spliterators . spliteratorUnk...
org . junit . Assert . assertEquals ( result . size ( ) , uniques . size ( ) )
getDefaultFsUrl ( ) { com . hortonworks . streamline . streams . cluster . service . metadata . HDFSMetadataService hdfsMetadataService = new com . hortonworks . streamline . streams . cluster . service . metadata . HDFSMetadataService ( configuration ) ; new mockit . Expectations ( ) { { configuration . get ( HDFSMeta...
org . junit . Assert . assertEquals ( com . hortonworks . streamline . streams . cluster . service . metadata . HDFSMetadataServiceTest . TEST_FS_URL , hdfsMetadataService . getDefaultFsUrl ( ) )
testDeleteCacheByGridSetId ( ) { when ( storageBroker . deleteByGridSetId ( eq ( "layer" ) , eq ( "gset1" ) ) ) . thenThrow ( new org . geowebcache . storage . StorageException ( "fake" ) ) ; try { mediator . deleteCacheByGridSetId ( "layer" , "gset1" ) ; org . junit . Assert . fail ( ) ; } catch ( java . lang . Runtim...
org . junit . Assert . assertTrue ( true )
testGetGeneratorNameWhenUndefined ( ) { "<AssertPlaceHolder>" ; } getGeneratorName ( ) { return org . apache . commons . lang . StringUtils . defaultIfEmpty ( asString ( "generate" ) , asString ( "generator" ) ) ; }
org . junit . Assert . assertEquals ( "" , param . getGeneratorName ( ) )
shouldInValidateWithExplicitlyNullStringsAuth ( ) { final uk . gov . gchq . gaffer . federatedstore . FederatedAccess access = new uk . gov . gchq . gaffer . federatedstore . FederatedAccess . Builder ( ) . graphAuths ( ( ( java . lang . String [ ] ) ( null ) ) ) . build ( ) ; "<AssertPlaceHolder>" ; } isValidToExecute...
org . junit . Assert . assertFalse ( access . isValidToExecute ( user ) )
testCrash_119_simpleif_0 ( ) { org . nd4j . linalg . factory . Nd4j . create ( 1 ) ; lombok . val tg = org . nd4j . imports . graphmapper . tf . TFGraphMapper . getInstance ( ) . importGraph ( new org . nd4j . linalg . io . ClassPathResource ( "tf_graphs/examples/simpleif_0/frozen_model.pb" ) . getInputStream ( ) ) ; "...
org . junit . Assert . assertNotNull ( tg )
shouldReturnFalseWhenShouldOverrideTranslation ( ) { java . lang . String key = "key" ; java . util . Locale locale = new java . util . Locale ( "pl" ) ; org . springframework . test . util . ReflectionTestUtils . setField ( translationServiceOverrideUtil , "useCustomTranslations" , false ) ; given ( pluginStateResolve...
org . junit . Assert . assertFalse ( result )
testNotRemoveIdentities ( ) { org . drools . core . impl . InternalKnowledgeBase kBase = ( ( org . drools . core . impl . InternalKnowledgeBase ) ( org . drools . core . impl . KnowledgeBaseFactory . newKnowledgeBase ( ) ) ) ; kBase . addPackage ( this . pkg ) ; this . ksession = kBase . newKieSession ( ) ; this . kses...
org . junit . Assert . assertEquals ( 16 , this . values . size ( ) )
cloneAsVersionTest ( ) { final org . opendaylight . controller . cluster . access . commands . TransactionDoCommitRequest clone = org . opendaylight . controller . cluster . access . commands . TransactionDoCommitRequestTest . OBJECT . cloneAsVersion ( ABIVersion . BORON ) ; "<AssertPlaceHolder>" ; } cloneAsVersion ( o...
org . junit . Assert . assertEquals ( org . opendaylight . controller . cluster . access . commands . TransactionDoCommitRequestTest . OBJECT , clone )
encodeMapQueryParam_mapOfStringToBoolean ( ) { java . lang . String prefix = "definedTags<sp>Exists." ; java . lang . String keyName1 = "tagMustExist" ; java . lang . String keyName2 = "tagMust<sp>NotExist" ; java . util . Map < java . lang . String , java . lang . Boolean > definedTagsExists = com . google . common . ...
org . junit . Assert . assertNotNull ( result )
testHasJsps_noFiles ( ) { org . eclipse . wst . common . componentcore . resources . IVirtualFolder root = mock ( org . eclipse . wst . common . componentcore . resources . IVirtualFolder . class , "/" ) ; org . eclipse . wst . common . componentcore . resources . IVirtualFile txt = mock ( org . eclipse . wst . common ...
org . junit . Assert . assertFalse ( com . google . cloud . tools . eclipse . appengine . facets . WebProjectUtil . hasJsps ( root ) )
testRewriteUri ( ) { javax . servlet . http . HttpServletRequest request = buildGoogleDotComServletRequest ( ) ; java . net . URL redirectUrl = buildRedirectUrl ( ) ; com . woonoz . proxy . servlet . UrlRewriter rewriter = new com . woonoz . proxy . servlet . UrlRewriterImpl ( request , redirectUrl ) ; java . net . URI...
org . junit . Assert . assertEquals ( expectedUri , rewriter . rewriteUri ( uri ) )
fetchItems ( ) { itemProvider . addItems ( book . twju . chapter_5 . TimelineTest . FIRST_ITEM , book . twju . chapter_5 . TimelineTest . SECOND_ITEM , book . twju . chapter_5 . TimelineTest . THIRD_ITEM , book . twju . chapter_5 . TimelineTest . FOURTH_ITEM , book . twju . chapter_5 . TimelineTest . FIFTH_ITEM , book ...
org . junit . Assert . assertArrayEquals ( new book . twju . chapter_5 . Item [ ] { book . twju . chapter_5 . TimelineTest . SIXTH_ITEM , book . twju . chapter_5 . TimelineTest . FIFTH_ITEM , book . twju . chapter_5 . TimelineTest . FOURTH_ITEM , book . twju . chapter_5 . TimelineTest . THIRD_ITEM } , actual . toArray ...
testCreateSingleSetter ( ) { try { org . eclipse . xtend2 . lib . StringConcatenation _builder = new org . eclipse . xtend2 . lib . StringConcatenation ( ) ; _builder . append ( "import<sp>org.eclipse.xtend.lib.annotations.Accessors" ) ; _builder . newLine ( ) ; _builder . append ( "class<sp>Foo<sp>{" ) ; _builder . ne...
org . junit . Assert . assertEquals ( java . lang . Integer . valueOf ( 1 ) , fooField . get ( instance ) )
remoteDifferent_Operations_nonBlocking ( ) { org . ebayopensource . turmeric . runtime . tests . service1 . sample . types1 . MyMessage msg = org . ebayopensource . turmeric . runtime . tests . common . util . TestUtils . createTestMessage ( ) ; org . ebayopensource . turmeric . runtime . sif . service . Service servic...
org . junit . Assert . assertTrue ( ( ( responseList . size ( ) ) == 2 ) )
testSignVerify ( ) { org . ethereum . crypto . ECKey key = org . ethereum . crypto . ECKey . fromPrivate ( privateKey ) ; java . lang . String message = new java . lang . String ( "This<sp>is<sp>an<sp>example<sp>of<sp>a<sp>signed<sp>message." ) ; org . ethereum . crypto . ECKey . ECDSASignature output = key . doSign ( ...
org . junit . Assert . assertTrue ( key . verify ( message . getBytes ( ) , output ) )
testMatch_novar ( ) { final com . ericsson . otp . erlang . OtpErlangObject p = org . erlide . util . erlang . OtpErlang . parse ( "[a,<sp>{b}]" ) ; final com . ericsson . otp . erlang . OtpErlangObject t1 = org . erlide . util . erlang . OtpErlang . parse ( "[a,<sp>{b}]" ) ; final org . erlide . util . erlang . OtpBin...
org . junit . Assert . assertNotNull ( r )
experimentTypeCV ( ) { builder . experiment ( ExperimentType . CROSS_VALIDATION , "cv" ) ; "<AssertPlaceHolder>" ; } toString ( ) { return name ; }
org . junit . Assert . assertEquals ( builder . type . toString ( ) , ExperimentType . CROSS_VALIDATION . toString ( ) )
testExcludeUsingOrRegex ( ) { com . streamsets . pipeline . stage . origin . jdbc . table . TableConfigBean tableConfigBean = new com . streamsets . pipeline . stage . origin . jdbc . table . TableJdbcSourceTestBuilder . TableConfigBeanTestBuilder ( ) . tablePattern ( "TABLE%" ) . schema ( com . streamsets . pipeline ....
org . junit . Assert . assertEquals ( 8 , com . streamsets . pipeline . stage . origin . jdbc . table . TestTableExclusion . listTablesForConfig ( com . streamsets . pipeline . stage . origin . jdbc . table . TestTableExclusion . connection , tableConfigBean , com . streamsets . pipeline . stage . origin . jdbc . table...
testRetriesRequests_for_bad_request ( ) { final int retries = 2 ; com . findwise . utils . http . HttpFetchConfiguration settings = new com . findwise . utils . http . HttpFetchConfigurationBuilder ( ) . setRetries ( retries ) . build ( ) ; com . findwise . utils . http . HttpFetcher httpFetcher = new com . findwise . ...
org . junit . Assert . assertThat ( bodyContent , org . hamcrest . CoreMatchers . equalTo ( "body" ) )
testInvocationTargetException ( ) { nl . bzk . brp . beheer . webapp . validatie . GenericValidator < nl . bzk . algemeenbrp . dal . domein . brp . entity . Partij > partijValidator = new nl . bzk . brp . beheer . webapp . validatie . GenericValidator ( nl . bzk . algemeenbrp . dal . domein . brp . entity . Partij . cl...
org . junit . Assert . assertEquals ( 2 , errorCount ( partijValidator , partij ) )
testCalculateChebyshev1Prototype ( ) { org . jdsp . iirfilterdesigner . model . FilterZerosPolesGain zpk1 = iirdesigner . calculatePrototype ( 3 , 3 ) ; org . apache . commons . math . complex . Complex [ ] zeros = new org . apache . commons . math . complex . Complex [ 0 ] ; org . apache . commons . math . complex . C...
org . junit . Assert . assertEquals ( zpk1 , zpk2 )
testTarBzip2ImportCommandAutoDetect ( ) { command . targets = com . beust . jcommander . internal . Lists . newArrayList ( org . kitesdk . cli . commands . TestTarImportCommand . TAR_TEST_BZIP2_FILE , org . kitesdk . cli . commands . TestTarImportCommand . datasetUri ) ; "<AssertPlaceHolder>" ; verify ( console ) . inf...
org . junit . Assert . assertEquals ( 0 , command . run ( ) )
test_issue37_RunningUpdaterTwiceMustNotChangeTheFile ( ) { java . io . File tmp = new java . io . File ( "target/test/update/issue37" ) ; tmp . mkdirs ( ) ; com . mycila . maven . plugin . license . util . FileUtils . copyFileToFolder ( new java . io . File ( "src/test/resources/update/issue37/xwiki.xml" ) , tmp ) ; co...
org . junit . Assert . assertThat ( execution1FileContent , org . hamcrest . CoreMatchers . is ( execution2FileContent ) )
getUserRegistry ( ) { com . ibm . ws . security . authentication . internal . jaas . modules . ServerCommonLoginModuleTest . TestLoginModule module = new com . ibm . ws . security . authentication . internal . jaas . modules . ServerCommonLoginModuleTest . TestLoginModule ( ) ; "<AssertPlaceHolder>" ; } getUserRegistry...
org . junit . Assert . assertSame ( "Did<sp>not<sp>get<sp>back<sp>the<sp>expected<sp>userRegistry<sp>object" , userRegistry , module . getUserRegistry ( ) )
testEnableCache ( ) { org . jboss . forge . addon . projects . Projects . enableCache ( ) ; "<AssertPlaceHolder>" ; } isCacheDisabled ( ) { return org . jboss . forge . addon . projects . Projects . cacheDisabledFlag ; }
org . junit . Assert . assertFalse ( org . jboss . forge . addon . projects . Projects . isCacheDisabled ( ) )
shouldValidate_jsonPathCondition ( ) { java . lang . String assertion = "#jsonPath(#response.content,<sp>'$.status')<sp>==<sp>'green'" ; io . gravitee . gateway . services . healthcheck . eval . assertion . AssertionEvaluation evaluation = new io . gravitee . gateway . services . healthcheck . eval . assertion . Assert...
org . junit . Assert . assertTrue ( result )
testSetRingSet_IRingSet ( ) { org . openscience . cdk . interfaces . IChemModel chemModel = ( ( org . openscience . cdk . interfaces . IChemModel ) ( newChemObject ( ) ) ) ; org . openscience . cdk . interfaces . IRingSet crystal = chemModel . getBuilder ( ) . newInstance ( org . openscience . cdk . interfaces . IRingS...
org . junit . Assert . assertEquals ( crystal , chemModel . getRingSet ( ) )
givenAsyncRunner_whenExecutingQuery_thenExpectedList ( ) { org . apache . commons . dbutils . AsyncQueryRunner runner = new org . apache . commons . dbutils . AsyncQueryRunner ( java . util . concurrent . Executors . newCachedThreadPool ( ) ) ; com . baeldung . commons . dbutils . EmployeeHandler employeeHandler = new ...
org . junit . Assert . assertEquals ( employeeList . size ( ) , 5 )
testFilterString13 ( ) { java . lang . String filter = ( ( ( ( org . opennms . features . topology . plugins . topo . asset . layers . NodeParamLabels . ASSET_DISPLAYCATEGORY ) + "=!testDisplayCategory" ) + ";" ) + ( org . opennms . features . topology . plugins . topo . asset . layers . NodeParamLabels . NODE_FOREIGNS...
org . junit . Assert . assertEquals ( true , expectedException )
updateOwner ( ) { org . springframework . samples . petclinic . model . Owner o1 = this . clinicService . findOwnerById ( 1 ) ; java . lang . String old = o1 . getLastName ( ) ; o1 . setLastName ( ( old + "X" ) ) ; this . clinicService . saveOwner ( o1 ) ; o1 = this . clinicService . findOwnerById ( 1 ) ; "<AssertPlace...
org . junit . Assert . assertEquals ( ( old + "X" ) , o1 . getLastName ( ) )
testGetElementAt ( ) { org . geotools . swing . control . DnDListModel < java . lang . String > model = new org . geotools . swing . control . DnDListModel < java . lang . String > ( ) ; model . addItem ( "one" ) ; model . addItem ( "two" ) ; "<AssertPlaceHolder>" ; } getElementAt ( int ) { return items . get ( index )...
org . junit . Assert . assertEquals ( "one" , model . getElementAt ( 0 ) )