input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testNotDuplicatedDisplayedMnemonic ( ) { es . gob . afirma . ui . wizardmultifirmacontrafirma . PanelEntradaAccessibilityTest . logger . info ( "testNotDuplicatedDisplayedMnemonic" ) ; try { final es . gob . afirma . ui . wizardmultifirmacontrafirma . PanelEntrada panelEntrada = new es . gob . afirma . ui . wizardmulti...
org . junit . Assert . assertTrue ( ( ( keyCodesSet . size ( ) ) == ( keyCodes . size ( ) ) ) )
someOtherWieredDoubleRing ( ) { org . openscience . cdk . interfaces . IAtomContainer mol = org . openscience . cdk . tools . ATASaturationCheckerTest . sp . parseSmiles ( "CCc2c3ccccc3[nH]c2" ) ; atasc . decideBondOrder ( mol , true ) ; int doubleBondCount = 0 ; for ( org . openscience . cdk . interfaces . IBond bond ...
org . junit . Assert . assertEquals ( 4 , doubleBondCount )
testLogException ( ) { java . lang . Exception e = new java . lang . Exception ( "err" ) ; java . util . concurrent . atomic . AtomicBoolean b = new java . util . concurrent . atomic . AtomicBoolean ( ) ; com . vmware . admiral . common . util . DeferredUtils . logException ( e , Level . INFO , ( t ) -> { b . set ( tru...
org . junit . Assert . assertTrue ( b . get ( ) )
isSameElementReturnsFalseWhenNotSameName ( ) { final org . bonitasoft . studio . model . expression . Expression expr = ExpressionFactory . eINSTANCE . createExpression ( ) ; final org . bonitasoft . studio . model . process . Data refData = ProcessFactory . eINSTANCE . createData ( ) ; refData . setName ( "myData" ) ;...
org . junit . Assert . assertFalse ( org . bonitasoft . studio . common . emf . tools . ModelHelper . isSameElement ( data , refData ) )
isEmpty_when_hasSelect_expect_false ( ) { io . ebeaninternal . server . querydefn . OrmQueryDetail detail = new io . ebeaninternal . server . querydefn . OrmQueryDetail ( ) ; detail . select ( "name" ) ; "<AssertPlaceHolder>" . isFalse ( ) ; } isEmpty ( ) { return propSet . isEmpty ( ) ; }
org . junit . Assert . assertThat ( detail . isEmpty ( ) )
string_starts_with_spring ( ) { boolean startsWithHttp = org . springframework . util . StringUtils . startsWithIgnoreCase ( "http://www.leveluplunch.com" , "http" ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( startsWithHttp )
testSynchronisatie ( ) { syncParameters . setInitieleVulling ( false ) ; final nl . bzk . migratiebrp . bericht . model . sync . impl . SynchroniseerNaarBrpVerzoekBericht verzoek = new nl . bzk . migratiebrp . bericht . model . sync . impl . SynchroniseerNaarBrpVerzoekBericht ( ) ; verzoek . setMessageId ( "verzoek-msg...
org . junit . Assert . assertSame ( antwoord , subject . verwerkBericht ( verzoek ) )
testWiFiEncryptionTypeToString ( ) { for ( com . digi . xbee . api . models . WiFiEncryptionType encryptionType : encryptionTypeValues ) "<AssertPlaceHolder>" ; } getName ( ) { return name ; }
org . junit . Assert . assertEquals ( encryptionType . getName ( ) , encryptionType . toString ( ) )
testGetAllSimpleTypes ( ) { org . ebayopensource . turmeric . tools . annoparser . List < org . ebayopensource . turmeric . tools . annoparser . SimpleType > simpleTypes = xsdIntf . getAllSimpleTypes ( ) ; int noOfSimpleTypes = simpleTypes . size ( ) ; "<AssertPlaceHolder>" ; } getAllSimpleTypes ( ) { return simpleType...
org . junit . Assert . assertEquals ( 5 , noOfSimpleTypes )
testRequests ( ) { final xapi . io . service . IOService service = xapi . io . X_IO . getIOService ( ) ; service . registerParser ( java . lang . String . class , xapi . test . server . BasicIOTest . pass_thru , xapi . test . server . BasicIOTest . pass_thru ) ; final xapi . io . api . IORequestBuilder < java . lang . ...
org . junit . Assert . assertTrue ( success . get ( ) )
getMarketplacePriceModel ( ) { org . oscm . internal . pricing . POMarketplacePriceModel expected = new org . oscm . internal . pricing . POMarketplacePriceModel ( ) ; m . setMarketplacePriceModel ( expected ) ; org . oscm . internal . pricing . POMarketplacePriceModel s = m . getMarketplacePriceModel ( ) ; "<AssertPla...
org . junit . Assert . assertEquals ( expected , s )
testIdentifiableSearch6 ( ) { org . hisp . dhis . query . Query query = org . hisp . dhis . query . Query . from ( schemaService . getDynamicSchema ( org . hisp . dhis . dataelement . DataElement . class ) , Junction . Type . OR ) ; org . hisp . dhis . query . Restriction nameRestriction = org . hisp . dhis . query . R...
org . junit . Assert . assertEquals ( 1 , objects . size ( ) )
testFailStream ( ) { com . linuxense . javadbf . DBFReader reader = null ; try { reader = new com . linuxense . javadbf . DBFReader ( new com . linuxense . javadbf . mocks . FailInputStream ( ) ) ; "<AssertPlaceHolder>" ; } finally { com . linuxense . javadbf . DBFUtils . close ( reader ) ; } }
org . junit . Assert . assertNull ( reader )
updateMultiShouldAddValuesCorrectlyWhenUsingPushEachWithSimpleTypes ( ) { org . springframework . data . mongodb . core . MongoTemplateTests . DocumentWithCollectionOfSimpleType document = new org . springframework . data . mongodb . core . MongoTemplateTests . DocumentWithCollectionOfSimpleType ( ) ; document . values...
org . junit . Assert . assertThat ( template . findOne ( query , org . springframework . data . mongodb . core . MongoTemplateTests . DocumentWithCollectionOfSimpleType . class ) . values , hasSize ( 3 ) )
testInsertBeforeTokenThenDeleteThatToken ( ) { org . antlr . v4 . tool . LexerGrammar g = new org . antlr . v4 . tool . LexerGrammar ( ( "lexer<sp>grammar<sp>T;\n" + ( ( "A<sp>:<sp>\'a\';\n" + "B<sp>:<sp>\'b\';\n" ) + "C<sp>:<sp>\'c\';\n" ) ) ) ; java . lang . String input = "abc" ; org . antlr . v4 . runtime . LexerIn...
org . junit . Assert . assertEquals ( expecting , result )
mkString_A$String ( ) { com . m3 . scalaflavor4j . Nil < java . lang . String > target = com . m3 . scalaflavor4j . Nil . < java . lang . String > apply ( ) ; java . lang . String sep = "-" ; java . lang . String actual = target . mkString ( sep ) ; java . lang . String expected = "" ; "<AssertPlaceHolder>" ; } mkStrin...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( expected ) ) )
testGetHasTypeRefs ( ) { final org . kie . workbench . common . dmn . api . definition . v1_1 . Expression expression1 = mock ( org . kie . workbench . common . dmn . api . definition . v1_1 . Expression . class ) ; final org . kie . workbench . common . dmn . api . definition . v1_1 . Expression expression2 = mock ( o...
org . junit . Assert . assertEquals ( expectedHasTypeRefs , actualHasTypeRefs )
shouldNotSetGraphViewOnOperationWhenOperationViewIsNotNull ( ) { final uk . gov . gchq . gaffer . store . Store store = mock ( uk . gov . gchq . gaffer . store . Store . class ) ; given ( store . getSchema ( ) ) . willReturn ( new uk . gov . gchq . gaffer . store . schema . Schema ( ) ) ; given ( store . getProperties ...
org . junit . Assert . assertEquals ( expectedResult , result )
serializeSourceCommandTagReport ( ) { cern . c2mon . shared . daq . command . SourceCommandTagReport response = createSourceCommandTagReport ( ) ; java . lang . String jsonResponse = cern . c2mon . shared . daq . serialization . MessageConverter . responseToJson ( response ) ; cern . c2mon . shared . daq . command . So...
org . junit . Assert . assertEquals ( response , responseFromJson )
testYouMayOptInCachingWithDefaultContainer ( ) { com . picocontainer . MutablePicoContainer mpc = new com . picocontainer . containers . JSR330PicoContainer ( ) ; mpc . as ( Characteristics . CACHE ) . addComponent ( com . picocontainer . containers . JSR330PicoContainerTestCase . Provider1 . class ) ; "<AssertPlaceHol...
org . junit . Assert . assertSame ( mpc . getComponent ( com . picocontainer . containers . JSR330PicoContainerTestCase . Provider1 . class ) , mpc . getComponent ( com . picocontainer . containers . JSR330PicoContainerTestCase . Provider1 . class ) )
testSerialization ( ) { final com . conductor . kafka . Broker broker = new com . conductor . kafka . Broker ( "127.0.0.1" , 9092 , 1 ) ; final com . conductor . kafka . Partition partition = new com . conductor . kafka . Partition ( "topic_name" , 0 , broker ) ; final com . conductor . kafka . hadoop . KafkaInputSplit...
org . junit . Assert . assertEquals ( split , actual )
testNullKeys ( ) { org . apache . solr . handler . dataimport . DIHCache cache = null ; try { cache = new org . apache . solr . handler . dataimport . SortedMapBackedCache ( ) ; java . util . Map < java . lang . String , java . lang . String > cacheProps = new java . util . HashMap < java . lang . String , java . lang ...
org . junit . Assert . assertNull ( cache . iterator ( null ) )
dumpBytecode ( ) { java . lang . ClassLoader classLoader = com . navercorp . pinpoint . common . util . ClassLoaderUtils . getDefaultClassLoader ( ) ; byte [ ] classFile = com . navercorp . pinpoint . profiler . util . BytecodeUtils . getClassFile ( classLoader , "java/lang/String" ) ; com . navercorp . pinpoint . prof...
org . junit . Assert . assertEquals ( result , result2 )
isUserNameValid_shouldNotValidateWhenUsernameIsWhitespaceOnly ( ) { "<AssertPlaceHolder>" ; } isUserNameValid ( java . lang . String ) { java . lang . String expression = "^[\\w][\\Q_\\E\\w-\\.]{1,49}$" ; if ( org . apache . commons . lang3 . StringUtils . isEmpty ( username ) ) { return true ; } try { java . util . re...
org . junit . Assert . assertFalse ( validator . isUserNameValid ( "<sp>" ) )
testDynamicQueryByPrimaryKeyMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . announcements . kernel . model . AnnouncementsFlag . class , _dynamicQueryClassLoader ) ; dynamicQuery . ...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
testMetdataPreviewSqlVarcharToPentahoString ( ) { doReturn ( Types . VARCHAR ) . when ( resultSet ) . getInt ( "DATA_TYPE" ) ; org . pentaho . di . core . row . ValueMetaInterface valueMeta = valueMetaBase . getMetadataPreview ( dbMeta , resultSet ) ; "<AssertPlaceHolder>" ; } isString ( ) { return ( type ) == ( TYPE_S...
org . junit . Assert . assertTrue ( valueMeta . isString ( ) )
checkNonce ( ) { final byte [ ] headerBytes = createHeaderBytes ( false , false ) ; final com . amazonaws . encryptionsdk . model . CipherFrameHeaders reconstructedHeaders = deserialize ( false , headerBytes ) ; "<AssertPlaceHolder>" ; } getNonce ( ) { return ( nonce_ ) != null ? nonce_ . clone ( ) : null ; }
org . junit . Assert . assertArrayEquals ( nonce_ , reconstructedHeaders . getNonce ( ) )
allColorsAndPositionsMatch ( ) { packt . java9 . by . example . mastermind . Color [ ] colors = firstColors ( ) ; packt . java9 . by . example . mastermind . Guess guess = new packt . java9 . by . example . mastermind . Guess ( colors ) ; packt . java9 . by . example . mastermind . Row row = new packt . java9 . by . ex...
org . junit . Assert . assertTrue ( row . matches ( guess ) )
whenBatchSizeGreaterThanNumberOfStepsThenAllStepsShouldBeExecuted ( ) { com . graphaware . tx . executor . batch . BatchTransactionExecutor batchExecutor = new com . graphaware . tx . executor . batch . NoInputBatchTransactionExecutor ( database , 7 , 6 , com . graphaware . tx . executor . batch . CreateNode . getInsta...
org . junit . Assert . assertEquals ( 6 , countNodes ( database ) )
invalidFloatDefaultShouldCreateViolations ( ) { java . util . Set < javax . validation . ConstraintViolation < org . alien4cloud . tosca . model . definitions . PropertyDefinition > > violations = validator . validate ( createDefinitions ( ToscaTypes . FLOAT , "not<sp>a<sp>float" ) ) ; "<AssertPlaceHolder>" ; } createD...
org . junit . Assert . assertEquals ( 1 , violations . size ( ) )
removingNonProposedExtensionsIsOk ( ) { remove . add ( CipherSuite . TLS_CHACHA20_POLY1305_SHA256 ) ; remove . add ( CipherSuite . TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 ) ; remove . add ( CipherSuite . TLS_AES_256_GCM_SHA384 ) ; expected . removeAll ( remove ) ; setExpectedFields ( "1304001C008A" ) ; action . set...
org . junit . Assert . assertTrue ( action . isExecuted ( ) )
testAnnotatedBot ( ) { java . lang . String json = "{\"sender\":{\"id\":\"1158621824216736\"},\"recipient\":{\"id\":\"1226565047419159\"},\"timestamp\":1490832021661,\"message\":{\"mid\":\"mid.$cAAUPCFn4ymdhTcignVbHH3rzpKd_\",\"seq\":844819,\"text\":\"Hi!\"}}" ; co . aurasphere . botmill . fb . model . incoming . Messa...
org . junit . Assert . assertNotNull ( envelope )
whenNotSettingPriorities_defaultShouldBe ( ) { com . graphhopper . jsprit . core . problem . job . Delivery s = Delivery . Builder . newInstance ( "s" ) . setLocation ( com . graphhopper . jsprit . core . problem . Location . newInstance ( "loc" ) ) . build ( ) ; "<AssertPlaceHolder>" ; } getPriority ( ) { return prior...
org . junit . Assert . assertEquals ( 2 , s . getPriority ( ) )
simple ( ) { long [ ] data = new long [ ] { 1 , 2 , 3 , 4 , 5 , 6 , 3 , 1 , 4 , 8 , 1 , 2 , 4 , 5 , 12 , 10 , 3 , 3 , 3 , 3 , 4 , 3 , 1 , 2 , 3 , 3 , 3 , 3 } ; long [ ] expectedSorted = new long [ ] { 1 , 2 , 3 , 4 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 4 , 3 , 1 , 2 , 4 , 5 , 12 , 10 , 4 , 8 , 1 , 2 , 5 , 6 , 3 , 1 } ; org...
org . junit . Assert . assertArrayEquals ( expectedSorted , data )
test ( ) { java . lang . Runtime . getRuntime ( ) . exec ( ( ( "rm<sp>-rf<sp>" + ( OUTPUT ) ) + "-mysql" ) ) . waitFor ( ) ; getTupleSchema1 ( ) . getField ( "a" ) . addProp ( MySQLOutputFormat . STRING_FIELD_SIZE_PANGOOL_FIELD_PROP , "8" ) ; runTest ( new com . splout . db . engine . MySQLEngine ( ) ) ; java . io . Fi...
org . junit . Assert . assertEquals ( 6 , list . size ( ) )
testDatatypeValue9 ( ) { java . lang . String init = "graph<sp>?g2<sp>{?y<sp>?p<sp>?v2}<sp>" 2 + ( ( ( ( ( ( ( ( "graph<sp>us:g1<sp>{<sp><Jack><sp>" + "rdf:value<sp>" ) + "<sp>1,<sp>1.0,<sp>'1'^^xsd:long,<sp>1e0,<sp>'1'^^xsd:double,<sp>'1'^^xsd:float,<sp>" ) + "graph<sp>?g2<sp>{?y<sp>?p<sp>?v2}<sp>" 4 ) + "'1'^^xsd:boo...
org . junit . Assert . assertEquals ( 5 , map . size ( ) )
testBepaalTeVervallenVoorkomen_GeenHistorieGevonden ( ) { final nl . bzk . brp . bijhouding . bericht . model . BijhoudingPersoon partner = mock ( nl . bzk . brp . bijhouding . bericht . model . BijhoudingPersoon . class ) ; when ( bericht . getEntiteitVoorObjectSleutel ( nl . bzk . brp . bijhouding . bericht . model ....
org . junit . Assert . assertNull ( actie . bepaalTeVervallenVoorkomen ( ) )
v_long ( ) { com . asakusafw . runtime . io . json . JsonFormat < com . asakusafw . runtime . io . json . JsonFormatTest . Data > format = builder ( ( r , d ) -> d . object = r . readLong ( ) , ( w , d ) -> w . writeLong ( d . longValue ) ) . build ( ) ; byte [ ] written = com . asakusafw . runtime . io . json . JsonFo...
org . junit . Assert . assertThat ( com . asakusafw . runtime . io . json . JsonFormatTest . read ( format , written ) , contains ( 100L ) )
testGetRequestIdInDifferentThread ( ) { final fr . gouv . vitam . common . model . VitamSession session = new fr . gouv . vitam . common . model . VitamSession ( new fr . gouv . vitam . common . thread . VitamThreadFactory . VitamThread ( null , 0 ) ) ; "<AssertPlaceHolder>" ; } getRequestId ( ) { return requestId ; }
org . junit . Assert . assertNull ( session . getRequestId ( ) )
testCopyDocumentInACollectionDontCreateAVersionOnClean ( ) { org . nuxeo . ecm . core . api . DocumentModel testWorkspace = session . createDocumentModel ( "/default-domain/workspaces" , "testWorkspace" , "Workspace" ) ; testWorkspace = session . createDocument ( testWorkspace ) ; org . nuxeo . ecm . core . api . Docum...
org . junit . Assert . assertEquals ( 0 , versions . size ( ) )
testExplicitRootTypes ( ) { java . lang . reflect . AnnotatedType t1 = new io . leangen . geantyref . TypeToken < java . lang . Comparable < java . lang . Long > > ( ) { } . getAnnotatedType ( ) ; java . lang . reflect . AnnotatedType t2 = new io . leangen . geantyref . TypeToken < java . lang . Comparable < java . lan...
org . junit . Assert . assertEquals ( expected , inferred )
testBuildWithDisabledStatusConstraintWithOrderBy ( ) { unit . setActive ( false ) ; org . lnu . is . domain . enrolment . benefit . EnrolmentBenefit context = new org . lnu . is . domain . enrolment . benefit . EnrolmentBenefit ( ) ; org . lnu . is . pagination . OrderBy orderBy1 = new org . lnu . is . pagination . Ord...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
testIntersectionOfTwoLists_NoDuplicates_TotalCount_Test2 ( ) { java . util . List < java . lang . Integer > listOne = new java . util . ArrayList < java . lang . Integer > ( ) ; listOne . add ( 1000 ) ; listOne . add ( 2000 ) ; listOne . add ( 3000 ) ; listOne . add ( 4000 ) ; listOne . add ( 5000 ) ; listOne . add ( 6...
org . junit . Assert . assertEquals ( expected . size ( ) , actual . size ( ) )
testCheckInvalidCRLF4 ( ) { org . apache . catalina . filters . TesterHttpServletRequest request = new org . apache . catalina . filters . TesterHttpServletRequest ( ) ; request . setHeader ( CorsFilter . REQUEST_HEADER_ORIGIN , "http://www.w3.org%0D%0A" ) ; request . setMethod ( "GET" ) ; org . apache . catalina . fil...
org . junit . Assert . assertEquals ( CorsFilter . CORSRequestType . INVALID_CORS , requestType )
testOrOnEmptyOptionalAndEmptySupplierOptional ( ) { final com . annimon . stream . OptionalInt optional = com . annimon . stream . OptionalInt . empty ( ) . or ( new com . annimon . stream . function . Supplier < com . annimon . stream . OptionalInt > ( ) { @ com . annimon . stream . Override public com . annimon . str...
org . junit . Assert . assertThat ( optional , isEmpty ( ) )
testReadWriteInProtobuf ( ) { org . apache . hadoop . ozone . security . OzoneTokenIdentifier id = getIdentifierInst ( ) ; java . io . File idFile = new java . io . File ( ( ( org . apache . hadoop . ozone . security . TestOzoneTokenIdentifier . BASEDIR ) + "/tokenFile" ) ) ; java . io . FileOutputStream fop = new java...
org . junit . Assert . assertEquals ( id , id2 )
each_by_map_namekeyset ( ) { java . util . Map < java . lang . String , org . nutz . dao . test . meta . Pet > map = new java . util . HashMap < java . lang . String , org . nutz . dao . test . meta . Pet > ( ) ; map . put ( "pet3" , null ) ; map . put ( "pet5" , null ) ; final java . util . List < org . nutz . dao . t...
org . junit . Assert . assertEquals ( 2 , pets . size ( ) )
shouldGetFunctioningEnvironment ( ) { final java . util . concurrent . atomic . AtomicReference < com . spotify . apollo . Environment > envReference = new java . util . concurrent . atomic . AtomicReference ( ) ; try ( com . spotify . apollo . core . Service . Instance i = service . build ( ) . start ( ) ) { final com...
org . junit . Assert . assertNotNull ( handler )
rewardPlayerIncrementsState ( ) { int expected = ( state . getAvatarAchievements ( ) ) + 1 ; achievement . rewardPlayer ( player , state ) ; "<AssertPlaceHolder>" ; } getAvatarAchievements ( ) { return avatarAchievements ; }
org . junit . Assert . assertEquals ( expected , state . getAvatarAchievements ( ) )
testPublicGroupStreamViewStrict ( ) { "<AssertPlaceHolder>" ; } coreGroupStreamInGeneralViewTest ( boolean , boolean ) { expectGroupStream ( isStreamPublic ) ; boolean result = sut . authorize ( activity , ActivityInteractionType . VIEW , strict ) ; mockery . assertIsSatisfied ( ) ; return result ; }
org . junit . Assert . assertTrue ( coreGroupStreamInGeneralViewTest ( true , true ) )
testSimpleArray2 ( ) { java . lang . String [ ] expAry = new java . lang . String [ ] { "abc" , "bbc" , "fff" } ; java . lang . String s = java . lang . String . format ( "[%s]" , org . nutz . lang . Lang . concatBy ( "\"%s\"" , ',' , expAry ) ) ; java . lang . String [ ] reAry = org . nutz . json . Json . fromJsonAsAr...
org . junit . Assert . assertTrue ( java . util . Arrays . equals ( expAry , reAry ) )
testValid ( ) { org . geotools . xsd . Parser parser = new org . geotools . xsd . Parser ( configuration ( ) ) ; parser . parse ( getClass ( ) . getResourceAsStream ( "GetFeature.xml" ) ) ; "<AssertPlaceHolder>" ; } getValidationErrors ( ) { return validationErrors ; }
org . junit . Assert . assertEquals ( 0 , parser . getValidationErrors ( ) . size ( ) )
testBuildWithPaametersAndDisabledDefaultConstraintsWithOrderBy ( ) { unit . setActive ( false ) ; unit . setSecurity ( false ) ; java . lang . String abbrName = "AN" ; java . lang . String name = "fdsfds" ; org . lnu . is . domain . employee . status . EmployeeStatus context = new org . lnu . is . domain . employee . s...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
test ( ) { org . ebayopensource . fido . uaf . msg . RegistrationRequest regRequest = gson . fromJson ( getTestRegRequest ( ) , org . ebayopensource . fido . uaf . msg . RegistrationRequest . class ) ; "<AssertPlaceHolder>" ; logger . info ( gson . toJson ( regRequest ) ) ; }
org . junit . Assert . assertNotNull ( regRequest )
setResellerShareVisible ( ) { m . setResellerShareVisible ( true ) ; "<AssertPlaceHolder>" ; } isResellerShareVisible ( ) { return resellerShareVisible ; }
org . junit . Assert . assertTrue ( m . isResellerShareVisible ( ) )
inOrderFail ( ) { javax . lang . model . element . ExecutableElement executableElement = org . androidannotations . helper . ValidatorParameterHelperTest . createMethod ( android . widget . AdapterView . class , long . class , boolean . class , android . os . Bundle . class ) ; org . androidannotations . ElementValidat...
org . junit . Assert . assertFalse ( valid . isValid ( ) )
testCompareToZeroZero ( ) { java . math . BigInteger aNumber = java . math . BigInteger . ZERO ; java . math . BigInteger bNumber = java . math . BigInteger . ZERO ; "<AssertPlaceHolder>" ; } compareTo ( org . teavm . classlib . java . lang . TBoolean ) { return org . teavm . classlib . java . lang . TBoolean . compare...
org . junit . Assert . assertEquals ( 0 , aNumber . compareTo ( bNumber ) )
exifOrientation7 ( ) { javax . imageio . ImageReader reader = javax . imageio . ImageIO . getImageReadersByFormatName ( "jpg" ) . next ( ) ; reader . setInput ( javax . imageio . ImageIO . createImageInputStream ( new java . io . File ( "test-resources/Exif/orientation_7.jpg" ) ) ) ; net . coobird . thumbnailator . uti...
org . junit . Assert . assertEquals ( net . coobird . thumbnailator . util . exif . Orientation . typeOf ( 7 ) , orientation )
testBetweenSalary_OR_FirstNameEQ_SECOND_TERM_NOT_FOUND_BIG_LIST ( ) { java . util . List < org . boon . tests . model . Employee > queryableList = $q ( bigList ) ; java . util . List < org . boon . tests . model . Employee > results = sortedQuery ( queryableList , "firstName" , org . boon . criteria . ObjectFilter . or...
org . junit . Assert . assertEquals ( 1000 , results . size ( ) )
testBuildWithDisabledStatusConstraint ( ) { unit . setActive ( false ) ; org . lnu . is . domain . department . Department context = new org . lnu . is . domain . department . Department ( ) ; java . lang . String expectedQuery = "SELECT<sp>e<sp>FROM<sp>Department<sp>e<sp>WHERE<sp>e.crtUserGroup<sp>IN<sp>(:userGroups)<...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
testFindEmpty ( ) { org . sakaiproject . api . app . scheduler . DelayedInvocation [ ] delayedInvocations = manager . findDelayedInvocations ( org . sakaiproject . component . app . scheduler . ScheduledInvocationTest . ALL , org . sakaiproject . component . app . scheduler . ScheduledInvocationTest . ALL ) ; "<AssertP...
org . junit . Assert . assertEquals ( 0 , delayedInvocations . length )
testJobClassNotFoundDoesntBlock ( ) { java . util . concurrent . CyclicBarrier barrier = new java . util . concurrent . CyclicBarrier ( 2 ) ; scheduler . getContext ( ) . put ( org . quartz . integrations . tests . JobClassNotFoundExceptionErrorsTriggersTest . BARRIER_KEY , barrier ) ; org . quartz . JobDetail goodJob ...
org . junit . Assert . assertThat ( scheduler . getTriggerState ( badTrigger . getKey ( ) ) , org . hamcrest . core . Is . is ( Trigger . TriggerState . ERROR ) )
accepts_a_rekord_with_all_its_properties_when_expecting_all_properties ( ) { com . noodlesandwich . rekord . validation . ValidRekord < com . noodlesandwich . rekord . validation . Address > address = com . noodlesandwich . rekord . validation . AllPropertiesMatcherTest . validatingAddressRequiringAllProperties . with ...
org . junit . Assert . assertThat ( address , org . hamcrest . Matchers . is ( com . noodlesandwich . rekord . validation . RekordMatchers . aRekordOf ( com . noodlesandwich . rekord . validation . Address . class ) . with ( Address . houseNumber , 22 ) . with ( Address . street , "Acacia<sp>Avenue" ) . with ( Address ...
applyNull ( ) { when ( fileStatus . getGroup ( ) ) . thenReturn ( null ) ; "<AssertPlaceHolder>" ; } apply ( org . apache . hadoop . fs . shell . PathData ) { java . lang . String group = getFileStatus ( item ) . getGroup ( ) ; if ( ( group == null ) || ( group . equals ( "" ) ) ) { return Result . PASS ; } return Resu...
org . junit . Assert . assertEquals ( Result . FAIL , group . apply ( item ) )
testGetAllCriteriaTypesByWlProgramId ( ) { java . lang . String fieldName1 = "alpha" ; java . lang . String fieldName2 = "bravo" ; java . lang . String fieldName3 = "charlie" ; java . lang . String fieldName4 = "delta" ; java . lang . String fieldName5 = "sigma" ; int wlProgramId1 = 111 ; int wlProgramId2 = 222 ; org ....
org . junit . Assert . assertTrue ( true )
loadColumnOneToOne ( ) { javax . persistence . EntityManager em = factory . createEntityManager ( ) ; org . meri . jpa . relationships . entities . onetoone . ColumnOneToOneOwner owner = em . find ( org . meri . jpa . relationships . entities . onetoone . ColumnOneToOneOwner . class , 1 ) ; em . close ( ) ; "<AssertPla...
org . junit . Assert . assertEquals ( 5 , owner . getInverse ( ) . getId ( ) )
testInitiateUploadSingle ( ) { org . finra . herd . model . api . xml . BusinessObjectFormatKey sourceBusinessObjectFormatKey = new org . finra . herd . model . api . xml . BusinessObjectFormatKey ( BDEF_NAMESPACE , BDEF_NAME , FORMAT_USAGE_CODE , FORMAT_FILE_TYPE_CODE , FORMAT_VERSION ) ; org . finra . herd . model . ...
org . junit . Assert . assertEquals ( response , result )
testWriteReadSeq ( ) { useFCOption = false ; positionReadOption = false ; java . lang . String fname = filenameOption ; long rdBeginPos = 0 ; int stat = testWriteAndRead ( fname , org . apache . hadoop . hdfs . TestWriteRead . WR_NTIMES , org . apache . hadoop . hdfs . TestWriteRead . WR_CHUNK_SIZE , rdBeginPos ) ; org...
org . junit . Assert . assertEquals ( 0 , stat )
encodeUnsorted_decodeUnsorted ( ) { byte [ ] originalBytes = new byte [ ] { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 17 , 18 , 19 , 20 , 21 , 22 , 23 , 24 , 25 , 26 , 27 , 28 , 29 , 30 , 31 , 32 } ; byte [ ] encoded = com . splicemachine . encoding . ByteEncoding . encodeUnsorted ( origina...
org . junit . Assert . assertArrayEquals ( originalBytes , decoded )
updateCohort_shouldChangeAPropertyOnACohort ( ) { org . openmrs . module . webservices . rest . SimpleObject attributes = new org . openmrs . module . webservices . rest . SimpleObject ( ) ; attributes . add ( "name" , "Updated<sp>cohort<sp>name" ) ; java . lang . String json = new org . codehaus . jackson . map . Obje...
org . junit . Assert . assertEquals ( "Updated<sp>cohort<sp>name" , editedCohort . getName ( ) )
testPSRpcCall ( ) { org . apache . sysml . runtime . controlprogram . paramserv . rpc . PSRpcCall expected = new org . apache . sysml . runtime . controlprogram . paramserv . rpc . PSRpcCall ( org . apache . sysml . runtime . controlprogram . paramserv . rpc . PSRpcObject . PUSH , 1 , generateData ( ) ) ; org . apache ...
org . junit . Assert . assertTrue ( java . util . Arrays . equals ( new org . apache . sysml . runtime . controlprogram . paramserv . rpc . PSRpcCall ( org . apache . sysml . runtime . controlprogram . paramserv . rpc . PSRpcObject . PUSH , 1 , generateData ( ) ) . serialize ( ) . array ( ) , actual . serialize ( ) . a...
testSerialization ( ) { org . jfree . chart . renderer . xy . XYStepAreaRenderer r1 = new org . jfree . chart . renderer . xy . XYStepAreaRenderer ( ) ; org . jfree . chart . renderer . xy . XYStepAreaRenderer r2 = ( ( org . jfree . chart . renderer . xy . XYStepAreaRenderer ) ( org . jfree . chart . TestUtils . serial...
org . junit . Assert . assertEquals ( r1 , r2 )
givenKnownOrganizationIdAndTimePeriodWhenQueringStateModificationOfVirtualMachinesThenModificationMustBeAccessibleFromRepositoryInterfaceDuringDefinedTimePeriodAndCertainUptimeTimeSchedulesNeedsBeGiven ( ) { long startTimeMilliseconds = java . lang . System . currentTimeMillis ( ) ; org . openinfinity . cloud . domain ...
org . junit . Assert . assertEquals ( 12 , usageHours . size ( ) )
testGetDefaultURI ( ) { org . geoserver . catalog . NamespaceInfo ns = createMock ( org . geoserver . catalog . NamespaceInfo . class ) ; expect ( ns . getURI ( ) ) . andReturn ( "http://foo.org" ) ; org . geoserver . catalog . Catalog cat = createMock ( org . geoserver . catalog . Catalog . class ) ; expect ( cat . ge...
org . junit . Assert . assertEquals ( "http://foo.org" , nsSupport . getURI ( "" ) )
testPersoonMetIndicatieGezagDerdeMetRegistratieIndicatieStaatsloos ( ) { final nl . bzk . brp . model . hisvolledig . momentview . kern . PersoonView huidigePersoon = maakHuidigePersoon ( SoortIndicatie . INDICATIE_DERDE_HEEFT_GEZAG ) ; final nl . bzk . brp . model . bericht . kern . PersoonBericht persoonBericht = maa...
org . junit . Assert . assertEquals ( 0 , berichtEntiteiten . size ( ) )
testGetClientVersion ( ) { classUnderTest . setClientVersion ( "aTestString" ) ; "<AssertPlaceHolder>" ; } getClientVersion ( ) { return clientVersion ; }
org . junit . Assert . assertEquals ( "aTestString" , classUnderTest . getClientVersion ( ) )
test_list_comprehension ( ) { org . jerlang . type . List expected = org . jerlang . type . List . of ( org . jerlang . type . Integer . of ( 2 ) , org . jerlang . type . Integer . of ( 4 ) , org . jerlang . type . Integer . of ( 6 ) ) ; org . jerlang . type . List params = org . jerlang . type . List . nil ; org . jer...
org . junit . Assert . assertEquals ( expected , result )
zouGeenMeldingMoetenGevenOmdatVoornamenAndersZijn ( ) { nl . bzk . brp . model . objecttype . bericht . PersoonBericht ouder = mock ( nl . bzk . brp . model . objecttype . bericht . PersoonBericht . class ) ; final nl . bzk . brp . model . objecttype . operationeel . PersoonModel kindModel = mock ( nl . bzk . brp . mod...
org . junit . Assert . assertThat ( meldingen . size ( ) , org . hamcrest . CoreMatchers . is ( 0 ) )
testSerializeWithSerializableParam ( ) { final java . math . BigDecimal big = java . math . BigDecimal . valueOf ( 123.456 ) ; final org . apache . logging . log4j . message . ObjectMessage msg = new org . apache . logging . log4j . message . ObjectMessage ( big ) ; final org . apache . logging . log4j . message . Obje...
org . junit . Assert . assertEquals ( msg , other )
allFiltersConfigured_NO ( ) { filters . addFilter ( new io . haskins . java . cloudtrailviewer . filter . AllFilter ( ) ) ; "<AssertPlaceHolder>" ; } allFiltersConfigured ( ) { boolean allFiltersConfigured = true ; if ( ! ( filters . isEmpty ( ) ) ) { for ( io . haskins . java . cloudtrailviewer . filter . Filter filte...
org . junit . Assert . assertFalse ( filters . allFiltersConfigured ( ) )
createReferencesEmpty3 ( ) { java . util . GregorianCalendar cal = new java . util . GregorianCalendar ( 2014 , 10 , 22 , 11 , 30 , 0 ) ; cal . set ( GregorianCalendar . MILLISECOND , 999 ) ; java . time . Instant start = cal . getTime ( ) . toInstant ( ) ; org . diirt . util . time . TimeInterval timeInterval = org . ...
org . junit . Assert . assertThat ( references . size ( ) , equalTo ( 0 ) )
enableSameAsSource ( ) { int comboSize = victim . getItems ( ) . size ( ) ; victim . enableSameAsSourceItem ( ) ; "<AssertPlaceHolder>" ; } size ( ) { org . junit . Assert . assertEquals ( "1<sp>MB" , LongColumn . SIZE . getTextValue ( ( 1024 * 1024 ) ) ) ; }
org . junit . Assert . assertEquals ( ( comboSize + 1 ) , victim . getItems ( ) . size ( ) )
testFlush ( ) { try { stream . flush ( ) ; org . junit . Assert . fail ( "Expected<sp>exception<sp>not<sp>thrown." ) ; } catch ( final java . io . IOException e ) { "<AssertPlaceHolder>" ; } } flush ( ) { try { out . flush ( ) ; } catch ( final java . io . IOException e ) { handleIOException ( e ) ; } }
org . junit . Assert . assertEquals ( exception , e )
test_reduce_empty_enum_sequence ( ) { org . jacorb . test . color_enum [ ] a = new org . jacorb . test . color_enum [ ] { } ; int result = server . reduce_enum_sequence ( a ) ; "<AssertPlaceHolder>" ; } reduce_enum_sequence ( org . jacorb . test . color_enum [ ] ) { return seq . length ; }
org . junit . Assert . assertEquals ( 0 , result )
shouldBeDoneIfParentIsDone ( ) { de . sebastianbenz . task . Task parent = newTask ( ) ; markAsDone ( parent ) ; parent . getChildren ( ) . add ( fixture ) ; "<AssertPlaceHolder>" ; } isDone ( ) { if ( ( isDone ) == ( de . sebastianbenz . task . impl . ContentImplCustom . DoneStatus . UNKNOWN ) ) { isDone = resolveStat...
org . junit . Assert . assertTrue ( fixture . isDone ( ) )
resolveModelMap_modelMapStateNodeHasReportedFeature ( ) { com . vaadin . flow . internal . nodefeature . ElementPropertyMap map = com . vaadin . flow . internal . nodefeature . ElementPropertyMapTest . createSimplePropertyMap ( ) ; map . resolveModelMap ( "foo" ) ; com . vaadin . flow . internal . StateNode stateNode =...
org . junit . Assert . assertTrue ( stateNode . isReportedFeature ( com . vaadin . flow . internal . nodefeature . ElementPropertyMap . class ) )
testGetS3KeyPrefixNoDataVersionSpecifiedInitialDataVersionNoExists ( ) { businessObjectDataServiceTestHelper . createDatabaseEntitiesForGetS3KeyPrefixTesting ( false ) ; java . util . List < org . finra . herd . model . api . xml . SchemaColumn > testPartitionColumns = schemaColumnDaoTestHelper . getTestPartitionColumn...
org . junit . Assert . assertEquals ( new org . finra . herd . model . api . xml . S3KeyPrefixInformation ( expectedS3KeyPrefix ) , resultS3KeyPrefixInformation )
verificationOutputTest ( ) { org . openkilda . northbound . dto . v1 . flows . UniFlowPingOutput verification = new org . openkilda . northbound . dto . v1 . flows . UniFlowPingOutput ( true , "err-test" , 10 ) ; org . openkilda . northbound . dto . v1 . flows . PingOutput dto = new org . openkilda . northbound . dto ....
org . junit . Assert . assertEquals ( dto , pass ( dto , org . openkilda . northbound . dto . v1 . flows . PingOutput . class ) )
testCompareCheckpointsWithSameOrder ( ) { org . apache . flink . runtime . checkpoint . CompletedCheckpoint checkpoint1 = new org . apache . flink . runtime . checkpoint . CompletedCheckpoint ( new org . apache . flink . api . common . JobID ( ) , 0 , 0 , 1 , new java . util . HashMap ( ) , java . util . Collections . ...
org . junit . Assert . assertTrue ( org . apache . flink . runtime . checkpoint . CompletedCheckpoint . checkpointsMatch ( checkpoints1 , checkpoints2 ) )
testWorkersAreIncreasedWithmaynEventsAndWorkers ( ) { handler = new com . sonymobile . tools . gerrit . gerritevents . GerritHandler ( 1 ) ; handler . addListener ( listener ) ; postEventsToQueue ( 100 ) ; handler . setNumberOfWorkerThreads ( 50 ) ; waitForEventsProcessed ( ) ; "<AssertPlaceHolder>" ; } getLargestPoolS...
org . junit . Assert . assertThat ( handler . getLargestPoolSize ( ) , org . hamcrest . Matchers . equalTo ( 50 ) )
tesBerichtSyntaxException ( ) { final java . lang . String berichtOrigineel = org . apache . commons . io . IOUtils . toString ( nl . moderniseringgba . isc . esb . message . brp . impl . OntkenningVaderschapVerzoekBerichtTest . class . getResourceAsStream ( "ontkenningVaderschapVerzoekBerichtSyntaxExceptionBericht.xml...
org . junit . Assert . assertTrue ( ( brpBericht instanceof nl . moderniseringgba . isc . esb . message . brp . impl . OngeldigBericht ) )
testNan ( ) { org . apache . commons . math . geometry . euclidean . threed . Vector3D c = org . apache . commons . math . geometry . euclidean . threed . Vector3D . NaN ; java . lang . String expected = "{(NaN);<sp>(NaN);<sp>(NaN)}" ; java . lang . String actual = vector3DFormat . format ( c ) ; "<AssertPlaceHolder>" ...
org . junit . Assert . assertEquals ( expected , actual )
testPersoonHeeftAndereNationaliteitMetBronDocument ( ) { final nl . bzk . brp . bijhouding . bericht . model . BijhoudingPersoon persoon = new nl . bzk . brp . bijhouding . bericht . model . BijhoudingPersoon ( ) ; when ( getBericht ( ) . getEntiteitVoorObjectSleutel ( nl . bzk . brp . bijhouding . bericht . model . Bi...
org . junit . Assert . assertEquals ( 0 , meldingen . size ( ) )
testInsertTwoAtoms ( ) { if ( ( datastore ) == null ) { return ; } datastore . registerPredicate ( p1 ) ; org . linqs . psl . model . term . UniqueIntID a = new org . linqs . psl . model . term . UniqueIntID ( 0 ) ; org . linqs . psl . model . term . UniqueIntID b = new org . linqs . psl . model . term . UniqueIntID ( ...
org . junit . Assert . assertEquals ( 2 , results . size ( ) )
testContextualQueryNullMetadata ( ) { java . lang . String methodName = "testContextualQueryNullMetadata" ; ddf . catalog . pubsub . PredicateTest . LOGGER . debug ( "***************<sp>START:<sp>{}<sp>*****************" , methodName ) ; java . lang . String searchPhrase = "serengeti<sp>event" ; ddf . catalog . pubsub ...
org . junit . Assert . assertFalse ( predicate . matches ( testEvent ) )
shouldReturnEndOfLowerCaseRun ( ) { int position = edu . stanford . bmir . protege . web . shared . entity . EntityNameUtils . indexOfWordEnd ( "abcDe" , 0 ) ; "<AssertPlaceHolder>" ; } indexOfWordEnd ( java . lang . String , int ) { checkNotNull ( entityName ) ; checkElementIndex ( startIndex , entityName . length ( )...
org . junit . Assert . assertEquals ( 3 , position )
annotatedMetaFieldIsNull ( ) { com . basho . riak . client . api . convert . reflection . AnnotationUtilTest . PojoWithAnnotatedFields pojo = new com . basho . riak . client . api . convert . reflection . AnnotationUtilTest . PojoWithAnnotatedFields ( ) ; com . basho . riak . client . core . query . UserMetadata . Riak...
org . junit . Assert . assertTrue ( meta . isEmpty ( ) )
testBusinessObjectDataEntitiesMatchingStoragePoliciesInvalidSourceStorage ( ) { storagePolicyDaoTestHelper . createStoragePolicyEntity ( new org . finra . herd . model . api . xml . StoragePolicyKey ( STORAGE_POLICY_NAMESPACE_CD , STORAGE_POLICY_NAME ) , StoragePolicyRuleTypeEntity . DAYS_SINCE_BDATA_REGISTERED , org ....
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
testOngeldigeAangewezenObjectOfVoorkomen ( ) { final nl . bzk . brp . bijhouding . bericht . model . BijhoudingPersoon partner = mock ( nl . bzk . brp . bijhouding . bericht . model . BijhoudingPersoon . class ) ; when ( bericht . getEntiteitVoorObjectSleutel ( nl . bzk . brp . bijhouding . bericht . model . Bijhouding...
org . junit . Assert . assertNull ( actie . getOngeldigAangewezenObjectOfVoorkomen ( ) )
testOperationSets ( ) { java . lang . String code = "" ; try { code = _setupTestOperation ( true ) ; _checkOperationIntoDb ( code ) ; } catch ( java . lang . Exception e ) { e . printStackTrace ( ) ; "<AssertPlaceHolder>" ; } return ; } _checkOperationIntoDb ( java . lang . String ) { org . isf . operation . model . Op...
org . junit . Assert . assertEquals ( true , false )